From 326d9660c0916b94059dc6262bd9e4b487fc5a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Fri, 5 Sep 2014 22:32:26 +0200 Subject: [PATCH] Update d3.d.ts this makes the following possible from typescript: `var context = canvas.node().getContext('2d');` alternative to `var context = (canvas.node()).getContext('2d');` --- d3/d3.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 158462aa3d..3250f9c1ed 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -808,7 +808,7 @@ declare module D3 { * Returns the first non-null element in the current selection. If the selection is empty, * returns null. */ - node: () => Element; + node: () => T; } export interface EnterSelection {