Skip to content

Commit 001bc97

Browse files
committed
Use Partial where appropriate
1 parent 3aa92c2 commit 001bc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.esm.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ export interface ElementOptionsByType {
18441844
point: PointOptions & PointHoverOptions;
18451845
}
18461846
export interface ElementChartOptions {
1847-
elements: { [k in keyof ElementOptionsByType]: ElementOptionsByType[k]; };
1847+
elements: Partial<ElementOptionsByType>;
18481848
}
18491849

18501850
export class BasePlatform {
@@ -2483,7 +2483,7 @@ export interface PluginOptionsByType {
24832483
tooltip: TooltipOptions;
24842484
}
24852485
export interface PluginChartOptions {
2486-
plugins: { [k in keyof PluginOptionsByType]: PluginOptionsByType[k]; };
2486+
plugins: Partial<PluginOptionsByType>;
24872487
}
24882488

24892489
export interface GridLineOptions {

0 commit comments

Comments
 (0)