mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
allow null on attrs for NodeType.create methods (#35422)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
fc3ab6fa12
commit
2845af6bbc
Vendored
+3
-3
@@ -1035,7 +1035,7 @@ export class NodeType<S extends Schema = any> {
|
||||
* set of marks.
|
||||
*/
|
||||
create(
|
||||
attrs?: { [key: string]: any },
|
||||
attrs?: { [key: string]: any } | null,
|
||||
content?: Fragment<S> | ProsemirrorNode<S> | Array<ProsemirrorNode<S>>,
|
||||
marks?: Array<Mark<S>>
|
||||
): ProsemirrorNode<S>;
|
||||
@@ -1045,7 +1045,7 @@ export class NodeType<S extends Schema = any> {
|
||||
* if it doesn't match.
|
||||
*/
|
||||
createChecked(
|
||||
attrs?: { [key: string]: any },
|
||||
attrs?: { [key: string]: any } | null,
|
||||
content?: Fragment<S> | ProsemirrorNode<S> | Array<ProsemirrorNode<S>>,
|
||||
marks?: Array<Mark<S>>
|
||||
): ProsemirrorNode<S>;
|
||||
@@ -1058,7 +1058,7 @@ export class NodeType<S extends Schema = any> {
|
||||
* `Fragment.empty` as content.
|
||||
*/
|
||||
createAndFill(
|
||||
attrs?: { [key: string]: any },
|
||||
attrs?: { [key: string]: any } | null,
|
||||
content?: Fragment<S> | ProsemirrorNode<S> | Array<ProsemirrorNode<S>>,
|
||||
marks?: Array<Mark<S>>
|
||||
): ProsemirrorNode<S> | null | undefined;
|
||||
|
||||
Reference in New Issue
Block a user