Skip to content

Commit 3637bce

Browse files
authored
Fix init option (initial animation) return type
AnnotationElement might be Partial<>
1 parent 938b821 commit 3637bce

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 | AnnotationElement),
45+
init?: boolean | (({ chart: Chart, properties: AnnotationBoxModel, options: AnnotationOptions }) => void | boolean | Partial<AnnotationElement>),
4646
id?: string,
4747
xMax?: Scriptable<ScaleValue, PartialEventContext>,
4848
xMin?: Scriptable<ScaleValue, PartialEventContext>,

0 commit comments

Comments
 (0)