Skip to content

Commit 001a0aa

Browse files
committed
chore: fix typings, add typings to "files" in package.json
1 parent a4ae230 commit 001a0aa

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"files": [
3030
"css/",
3131
"es/",
32+
"src/index.d.ts",
3233
"lib/",
3334
"umd/",
3435
"README.md"

src/index.d.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
interface Charts {
2-
innerRef?: any;
3-
datasets?: Array<any>;
4-
labels?: string | Array<any>;
5-
options?: any;
6-
plugins?: Array<any>;
1+
import { HTMLProps } from 'react'
2+
3+
interface Charts extends HTMLProps<any> {
4+
innerRef?: any
5+
datasets?: Array<any>
6+
labels?: string | Array<any>
7+
options?: any
8+
plugins?: Array<any>
79
}
810

911
interface CChart extends Charts {
10-
type?: string;
12+
type?: string
1113
}
1214

1315
interface CChartBar extends Charts {}

0 commit comments

Comments
 (0)