From 9dae9776ae5f04a7a477bd244992de11c9b2a46d Mon Sep 17 00:00:00 2001 From: Joey Silva Date: Thu, 20 Sep 2018 13:28:52 -0700 Subject: [PATCH] Update index.d.ts Make each option in options param of addLineWidgets optional. --- types/codemirror/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index 729b8a86d7..a3b775ab5e 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -262,13 +262,13 @@ declare namespace CodeMirror { Note that the widget node will become a descendant of nodes with CodeMirror-specific CSS classes, and those classes might in some cases affect it. */ addLineWidget(line: any, node: HTMLElement, options?: { /** Whether the widget should cover the gutter. */ - coverGutter: boolean; + coverGutter?: boolean; /** Whether the widget should stay fixed in the face of horizontal scrolling. */ - noHScroll: boolean; + noHScroll?: boolean; /** Causes the widget to be placed above instead of below the text of the line. */ - above: boolean; + above?: boolean; /** When true, will cause the widget to be rendered even if the line it is associated with is hidden. */ - showIfHidden: boolean; + showIfHidden?: boolean; }): CodeMirror.LineWidget;