From b79abf82039067c2e9e9c1d2f5d50828457965f5 Mon Sep 17 00:00:00 2001 From: Cedric Venet Date: Sun, 11 May 2014 23:50:35 +0200 Subject: [PATCH] Make optional the before argument of enter().insert('') From the documentation: "For enter selections, the before selector may be omitted, [...]" --- 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 0b049726bc..42f94d0c66 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -811,7 +811,7 @@ declare module D3 { export interface EnterSelection { append: (name: string) => Selection; - insert: (name: string, before: string) => Selection; + insert: (name: string, before?: string) => Selection; select: (selector: string) => Selection; empty: () => boolean; node: () => Element;