mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-28 12:30:21 +08:00
Update signature of arguments to defined()
The function passed in can take the index.
This commit is contained in:
1 parent
b217155257
commit
7cdf294639
1 file changed
+4
-4
Vendored
+4
-4
@@ -1902,13 +1902,13 @@ declare module D3 {
|
||||
/**
|
||||
* Get the accessor function that controls where the line is defined.
|
||||
*/
|
||||
(): (data: any, index ?: number) => boolean;
|
||||
(): (data: any, index?: number) => boolean;
|
||||
/**
|
||||
* Set the accessor function that controls where the area is defined.
|
||||
*
|
||||
* @param defined The new accessor function
|
||||
*/
|
||||
(defined: (data: any) => boolean): Line;
|
||||
(defined: (data: any, index?: number) => boolean): Line;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2198,13 +2198,13 @@ declare module D3 {
|
||||
/**
|
||||
* Get the accessor function that controls where the area is defined.
|
||||
*/
|
||||
(): (data: any) => any;
|
||||
(): (data: any, index?: number) => any;
|
||||
/**
|
||||
* Set the accessor function that controls where the area is defined.
|
||||
*
|
||||
* @param defined The new accessor function
|
||||
*/
|
||||
(defined: (data: any) => any): Area;
|
||||
(defined: (data: any, index?: number) => any): Area;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user