From bdd47777bdb7380ec4d4e4900db8c4ce052f9afd Mon Sep 17 00:00:00 2001 From: Tom Crockett Date: Fri, 15 Nov 2013 22:36:25 -0800 Subject: [PATCH] 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. --- d3/d3.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index e97e12bf53..988d4fb35c 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -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: {