mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 10:59:55 +08:00
Add no-arg overload of selection.data()
There is a no-arg version of [the `data()` method on selections](https://github.com/mbostock/d3/wiki/Selections#wiki-data) which returns the previously-assigned data. From the docs: > If values is not specified, then this method returns the array of data for the first group in the selection.
This commit is contained in:
1
d3/d3.d.ts
vendored
1
d3/d3.d.ts
vendored
@@ -714,6 +714,7 @@ declare module D3 {
|
||||
data: {
|
||||
(values: (data: any, index?: number) => any[], key?: (data: any, index?: number) => string): UpdateSelection;
|
||||
(values: any[], key?: (data: any, index?: number) => string): UpdateSelection;
|
||||
(): any[];
|
||||
};
|
||||
|
||||
datum: {
|
||||
|
||||
Reference in New Issue
Block a user