Skip to content

Commit

Permalink
fix(typings): add ChartDataSets, ChartOptions - closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed Mar 2, 2021
1 parent 7311672 commit 366765b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { HTMLProps } from 'react'
import { ChartDataSets, ChartOptions } from 'chart.js'

interface Charts extends HTMLProps<any> {
innerRef?: any
datasets?: Array<any>
datasets?: ChartDataSets[]
labels?: string | Array<any>
options?: any
options?: ChartOptions
plugins?: Array<any>
}

Expand All @@ -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
export declare const CChartPolarArea: (props: CChartPolarArea) => any

0 comments on commit 366765b

Please sign in to comment.