Skip to content

Commit 8514679

Browse files
committed
add ts for prop opts, fixed #153
1 parent 2f01580 commit 8514679

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ interface ObjectMap {
1212
[key: string]: any,
1313
}
1414

15+
interface optsMap {
16+
devicePixelRatio?: number,
17+
renderer?: 'canvas' | 'svg',
18+
width?: number | null | undefined | 'auto',
19+
height?: number | null | undefined | 'auto',
20+
}
21+
1522
// Index
1623
export interface ReactEchartsPropsTypes {
1724
option: ObjectMap;
@@ -25,6 +32,7 @@ export interface ReactEchartsPropsTypes {
2532
loadingOption?: ObjectMap;
2633
onEvents?: EventMap;
2734
echarts?: object;
35+
opts?: optsMap;
2836
}
2937

3038
export default class ReactEcharts extends React.Component<ReactEchartsPropsTypes, any>{}

0 commit comments

Comments
 (0)