Skip to content

Commit

Permalink
Add missing return types (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Apr 26, 2021
1 parent 99a2159 commit 4b7c818
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ declare module 'chart.js' {
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Chart<TType extends keyof ChartTypeRegistry = keyof ChartTypeRegistry, TData = DistributiveArray<ChartTypeRegistry[TType]['defaultDataPoint']>, TLabel = unknown> {
pan(pan: PanAmount, options?: Partial<PanOptions>, scales?: Scale[]): void;
zoom(zoom: ZoomAmount, options?: Partial<ZoomOptions>, useTransition?: boolean): void;
resetZoom(): void;
pan(pan: PanAmount, options?: Partial<PanOptions>, scales?: Scale[]);
zoom(zoom: ZoomAmount, options?: Partial<ZoomOptions>, useTransition?: boolean);
}
}

declare const Zoom: Plugin;

export default Zoom;

export function doPan(chart: Chart, pan: PanAmount, options?: Partial<PanOptions>, scales?: Scale[]);
export function doZoom(chart: Chart, zoom: ZoomAmount, options?: Partial<ZoomOptions>, useTransition?: boolean);
export function resetZoom(chart: Chart);
export function doPan(chart: Chart, pan: PanAmount, options?: Partial<PanOptions>, scales?: Scale[]): void;
export function doZoom(chart: Chart, zoom: ZoomAmount, options?: Partial<ZoomOptions>, useTransition?: boolean): void;
export function resetZoom(chart: Chart): void;

0 comments on commit 4b7c818

Please sign in to comment.