mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
Merge pull request #2910 from jtlan/line-area-defined
Update signature of arguments to defined()
This commit is contained in:
Vendored
+4
-4
@@ -1907,13 +1907,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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2203,13 +2203,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