diff --git a/src/index.d.ts b/src/index.d.ts index 83d2c41..a27db09 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,10 +1,11 @@ import { HTMLProps } from 'react' +import { ChartDataSets, ChartOptions } from 'chart.js' interface Charts extends HTMLProps { innerRef?: any - datasets?: Array + datasets?: ChartDataSets[] labels?: string | Array - options?: any + options?: ChartOptions plugins?: Array } @@ -27,4 +28,4 @@ export declare const CChartLine: (props: CChartLine) => any export declare const CChartDoughnut: (props: CChartDoughnut) => any export declare const CChartRadar: (props: CChartRadar) => any export declare const CChartPie: (props: CChartPie) => any -export declare const CChartPolarArea: (props: CChartPolarArea) => any \ No newline at end of file +export declare const CChartPolarArea: (props: CChartPolarArea) => any