From 2845af6bbcfeb667880ab05bd630caa314d001e1 Mon Sep 17 00:00:00 2001 From: Jerome Indefenzo Date: Tue, 21 May 2019 01:20:55 +0800 Subject: [PATCH] allow null on attrs for NodeType.create methods (#35422) --- types/prosemirror-model/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/prosemirror-model/index.d.ts b/types/prosemirror-model/index.d.ts index d2d9670584..aa6cdaea9a 100644 --- a/types/prosemirror-model/index.d.ts +++ b/types/prosemirror-model/index.d.ts @@ -1035,7 +1035,7 @@ export class NodeType { * set of marks. */ create( - attrs?: { [key: string]: any }, + attrs?: { [key: string]: any } | null, content?: Fragment | ProsemirrorNode | Array>, marks?: Array> ): ProsemirrorNode; @@ -1045,7 +1045,7 @@ export class NodeType { * if it doesn't match. */ createChecked( - attrs?: { [key: string]: any }, + attrs?: { [key: string]: any } | null, content?: Fragment | ProsemirrorNode | Array>, marks?: Array> ): ProsemirrorNode; @@ -1058,7 +1058,7 @@ export class NodeType { * `Fragment.empty` as content. */ createAndFill( - attrs?: { [key: string]: any }, + attrs?: { [key: string]: any } | null, content?: Fragment | ProsemirrorNode | Array>, marks?: Array> ): ProsemirrorNode | null | undefined;