fix tests

This commit is contained in:
Philipp Kühn
2020-10-23 14:24:19 +02:00
parent f37e6da902
commit e2aa2e4bba
3 changed files with 24 additions and 20 deletions

View File

@@ -74,7 +74,7 @@ export interface NodeExtensionSpec<Options = {}, Commands = {}> extends Overwrit
/**
* Render HTML
*/
renderHTML?: (
renderHTML?: ((
this: {
options: Options,
},
@@ -82,7 +82,7 @@ export interface NodeExtensionSpec<Options = {}, Commands = {}> extends Overwrit
node: Node,
attributes: { [key: string]: any },
}
) => DOMOutputSpec,
) => DOMOutputSpec) | null,
/**
* Add Attributes
@@ -164,7 +164,7 @@ const defaultNode: NodeExtension = {
defining: null,
isolating: null,
parseHTML: () => null,
renderHTML: () => '',
renderHTML: null,
addAttributes: () => ({}),
}