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;