Skip to content

Commit 366765b

Browse files
committed
fix(typings): add ChartDataSets, ChartOptions - closes #1
1 parent 7311672 commit 366765b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.d.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { HTMLProps } from 'react'
2+
import { ChartDataSets, ChartOptions } from 'chart.js'
23

34
interface Charts extends HTMLProps<any> {
45
innerRef?: any
5-
datasets?: Array<any>
6+
datasets?: ChartDataSets[]
67
labels?: string | Array<any>
7-
options?: any
8+
options?: ChartOptions
89
plugins?: Array<any>
910
}
1011

@@ -27,4 +28,4 @@ export declare const CChartLine: (props: CChartLine) => any
2728
export declare const CChartDoughnut: (props: CChartDoughnut) => any
2829
export declare const CChartRadar: (props: CChartRadar) => any
2930
export declare const CChartPie: (props: CChartPie) => any
30-
export declare const CChartPolarArea: (props: CChartPolarArea) => any
31+
export declare const CChartPolarArea: (props: CChartPolarArea) => any

0 commit comments

Comments
 (0)