Skip to content

Commit

Permalink
FChart.js: fixed missing config (DefinitelyTyped#11796)
Browse files Browse the repository at this point in the history
  • Loading branch information
khovanskiy authored and mhegazy committed Oct 6, 2016
1 parent 4b988a2 commit bd2b99f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions chart.js/chart.js.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ interface TimeScale extends ChartScales {
parser?: string | ((arg: any) => any);
round?: string;
tooltipFormat?: string;
unit?: TimeUnit;
unit?: string | TimeUnit;
unitStepSize?: number;
}

Expand All @@ -390,11 +390,12 @@ interface RadialLinearScale {
ticks?: TickOptions;
}

declare var Chart: {
new (context: CanvasRenderingContext2D, options: ChartConfiguration): {};
declare class Chart {
constructor (context: CanvasRenderingContext2D, options: ChartConfiguration);
config: ChartConfiguration;
destroy: () => {};
update: (duration: any, lazy: any) => {};
render: (duration: any, lazy: any) => {};
update: (duration?: any, lazy?: any) => {};
render: (duration?: any, lazy?: any) => {};
stop: () => {};
resize: () => {};
clear: () => {};
Expand All @@ -407,4 +408,4 @@ declare var Chart: {
defaults: {
global: ChartOptions;
}
};
}

0 comments on commit bd2b99f

Please sign in to comment.