add command scope

This commit is contained in:
Philipp Kühn
2021-02-16 11:27:58 +01:00
parent 87beee25b0
commit ca8d1a4245
74 changed files with 614 additions and 460 deletions

View File

@@ -13,19 +13,21 @@ export interface StrikeOptions {
}
declare module '@tiptap/core' {
interface Commands {
/**
* Set a strike mark
*/
setStrike: () => Command,
/**
* Toggle a strike mark
*/
toggleStrike: () => Command,
/**
* Unset a strike mark
*/
unsetStrike: () => Command,
interface AllCommands {
strike: {
/**
* Set a strike mark
*/
setStrike: () => Command,
/**
* Toggle a strike mark
*/
toggleStrike: () => Command,
/**
* Unset a strike mark
*/
unsetStrike: () => Command,
}
}
}