fix: set correct type for emitUpdate

This commit is contained in:
Philipp Kühn
2021-04-25 21:04:26 +02:00
parent ef51852e6a
commit 9a40c17b34
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ declare module '@tiptap/core' {
/**
* Clear the whole document.
*/
clearContent: (emitUpdate?: Boolean) => Command,
clearContent: (emitUpdate?: boolean) => Command,
}
}
}

View File

@@ -10,7 +10,7 @@ declare module '@tiptap/core' {
*/
setContent: (
content: Content,
emitUpdate?: Boolean,
emitUpdate?: boolean,
parseOptions?: Record<string, any>,
) => Command,
}