Skip to content

Commit 89e6c48

Browse files
authored
Fix init option type setting it as optional (#867)
1 parent 842bafc commit 89e6c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/options.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface CoreAnnotationOptions extends AnnotationEvents, ShadowOptions,
4242
borderWidth?: Scriptable<number, PartialEventContext>,
4343
display?: Scriptable<boolean, PartialEventContext>,
4444
drawTime?: Scriptable<DrawTime, PartialEventContext>,
45-
init: boolean | ((chart: Chart, properties: AnnotationBoxModel, options: AnnotationOptions) => void | boolean | AnnotationBoxModel),
45+
init?: boolean | ((chart: Chart, properties: AnnotationBoxModel, options: AnnotationOptions) => void | boolean | AnnotationBoxModel),
4646
id?: string,
4747
xMax?: Scriptable<ScaleValue, PartialEventContext>,
4848
xMin?: Scriptable<ScaleValue, PartialEventContext>,

0 commit comments

Comments
 (0)