Skip to content

Commit 641fc8f

Browse files
committed
feat: add typings
1 parent 5e4e5ca commit 641fc8f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"main": "lib/index.js",
2727
"module": "es/index.js",
28+
"types": "src/index.d.ts",
2829
"files": [
2930
"css/",
3031
"es/",

src/index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
3+
interface CCharts {
4+
innerRef?: any;
5+
datasets?: Array<any>;
6+
labels?: string | Array<any>;
7+
options?: any;
8+
plugins?: Array<any>;
9+
type?: string;
10+
}
11+
12+
export declare const CCharts: (props: CCharts) => React.SFC<CCharts>;

0 commit comments

Comments
 (0)