diff --git a/types/index.d.ts b/types/index.d.ts index fd4c1d6b..f5b02f90 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -12,9 +12,9 @@ declare module 'chart.js' { } // eslint-disable-next-line @typescript-eslint/no-unused-vars interface Chart, TLabel = unknown> { + pan(pan: PanAmount, options?: Partial, scales?: Scale[]): void; + zoom(zoom: ZoomAmount, options?: Partial, useTransition?: boolean): void; resetZoom(): void; - pan(pan: PanAmount, options?: Partial, scales?: Scale[]); - zoom(zoom: ZoomAmount, options?: Partial, useTransition?: boolean); } } @@ -22,6 +22,6 @@ declare const Zoom: Plugin; export default Zoom; -export function doPan(chart: Chart, pan: PanAmount, options?: Partial, scales?: Scale[]); -export function doZoom(chart: Chart, zoom: ZoomAmount, options?: Partial, useTransition?: boolean); -export function resetZoom(chart: Chart); +export function doPan(chart: Chart, pan: PanAmount, options?: Partial, scales?: Scale[]): void; +export function doZoom(chart: Chart, zoom: ZoomAmount, options?: Partial, useTransition?: boolean): void; +export function resetZoom(chart: Chart): void;