mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-16 10:34:34 +00:00
Update index.ts (#13539)
Adding this fild will solve the problem of module build failed: Error: Property 'defaults' does not exist on type 'typeof Chart'. And You can use this Chart.defaults.global in ts
This commit is contained in:
1
chart.js/index.d.ts
vendored
1
chart.js/index.d.ts
vendored
@@ -392,6 +392,7 @@ interface RadialLinearScale {
|
||||
}
|
||||
|
||||
declare class Chart {
|
||||
static defaults: any;
|
||||
constructor (context: CanvasRenderingContext2D | HTMLCanvasElement, options: ChartConfiguration);
|
||||
config: ChartConfiguration;
|
||||
data: ChartData;
|
||||
|
||||
Reference in New Issue
Block a user