mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 16:50:15 +00:00
FChart.js: fixed missing config (#11796)
This commit is contained in:
13
chart.js/chart.js.d.ts
vendored
13
chart.js/chart.js.d.ts
vendored
@@ -379,7 +379,7 @@ interface TimeScale extends ChartScales {
|
||||
parser?: string | ((arg: any) => any);
|
||||
round?: string;
|
||||
tooltipFormat?: string;
|
||||
unit?: TimeUnit;
|
||||
unit?: string | TimeUnit;
|
||||
unitStepSize?: number;
|
||||
}
|
||||
|
||||
@@ -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: () => {};
|
||||
@@ -407,4 +408,4 @@ declare var Chart: {
|
||||
defaults: {
|
||||
global: ChartOptions;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user