Skip to content

Commit

Permalink
fix: set correct type for emitUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 25, 2021
1 parent ef51852 commit 9a40c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/commands/clearContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module '@tiptap/core' {
/**
* Clear the whole document.
*/
clearContent: (emitUpdate?: Boolean) => Command,
clearContent: (emitUpdate?: boolean) => Command,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/commands/setContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module '@tiptap/core' {
*/
setContent: (
content: Content,
emitUpdate?: Boolean,
emitUpdate?: boolean,
parseOptions?: Record<string, any>,
) => Command,
}
Expand Down

0 comments on commit 9a40c17

Please sign in to comment.