Skip to content

Commit 62af442

Browse files
nstepienjerairrest
authored andcommitted
Fix datasetKeyProvider typing (#310)
- The lack of type for the argument breaks when TypeScript's `noImplicitAny` is enabled - `datasetKeyProvider` is optional, as it defaults to `ChartComponent.getLabelAsKey`
1 parent 8b99ca4 commit 62af442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface ChartComponentProps {
2626
plugins?: object[];
2727
redraw?: boolean;
2828
width?: number;
29-
datasetKeyProvider: (any) => any;
29+
datasetKeyProvider?: (any: any) => any;
3030
}
3131

3232
export interface LinearComponentProps extends ChartComponentProps {

0 commit comments

Comments
 (0)