From 92df0046004d4c0def9fad037dc561e190732eef Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 23 Sep 2021 19:32:36 +0200 Subject: [PATCH] fix(types): Allow string dates for zoom() domain The changes in 5f7779bdb191 ("fix(types): Fix wrong type definition") provided support for Date type as argument in zoom(), but string dates are also accepted and parsed properly, e.g. "2021-01-01T01:02:03.567". Fix #2316 Signed-off-by: Adrian Schmutzler --- types/chart.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/chart.d.ts b/types/chart.d.ts index cb5bd532a..fc1acaa18 100644 --- a/types/chart.d.ts +++ b/types/chart.d.ts @@ -223,7 +223,7 @@ export interface Chart { * Zoom by giving x domain. * @param domain If domain is given, the chart will be zoomed to the given domain. If no argument is given, the current zoomed domain will be returned. */ - (domain?: Array): Array; + (domain?: Array): Array; /** * Enable and disable zooming.