mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
Add missing properties to definitions for D3.set and D3.map.
Paramaterize the function type for Set.add
This commit is contained in:
Vendored
+6
-2
@@ -848,14 +848,18 @@ declare module D3 {
|
||||
values(): Array<any>;
|
||||
entries(): Array<any>;
|
||||
forEach(func: (key: string, value: any) => void ): void;
|
||||
empty(): boolean;
|
||||
size(): number;
|
||||
}
|
||||
|
||||
export interface Set{
|
||||
export interface Set {
|
||||
has(value: any): boolean;
|
||||
add(value: any): any;
|
||||
add<T>(value: T): T;
|
||||
remove(value: any): boolean;
|
||||
values(): Array<any>;
|
||||
forEach(func: (value: any) => void ): void;
|
||||
empty(): boolean;
|
||||
size(): number;
|
||||
}
|
||||
|
||||
export interface Random {
|
||||
|
||||
Reference in New Issue
Block a user