Add missing properties to definitions for D3.set and D3.map.

Paramaterize the function type for Set.add
This commit is contained in:
Daniel Mane
2014-08-07 22:36:44 -07:00
parent c773444c76
commit 2f1b69b353
Vendored
+6 -2
View File
@@ -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 {