From 89e6c48d5c4acdaefd0b933965c6f3617205856e Mon Sep 17 00:00:00 2001 From: stockiNail Date: Wed, 15 Mar 2023 15:01:57 +0100 Subject: [PATCH] Fix init option type setting it as optional (#867) --- types/options.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/options.d.ts b/types/options.d.ts index fb1c9cf1c..0d6ae8f36 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -42,7 +42,7 @@ export interface CoreAnnotationOptions extends AnnotationEvents, ShadowOptions, borderWidth?: Scriptable, display?: Scriptable, drawTime?: Scriptable, - init: boolean | ((chart: Chart, properties: AnnotationBoxModel, options: AnnotationOptions) => void | boolean | AnnotationBoxModel), + init?: boolean | ((chart: Chart, properties: AnnotationBoxModel, options: AnnotationOptions) => void | boolean | AnnotationBoxModel), id?: string, xMax?: Scriptable, xMin?: Scriptable,