fix types

This commit is contained in:
Philipp Kühn
2021-06-09 11:05:41 +02:00
parent c24ed30cad
commit 87a8b6fda8
2 changed files with 10 additions and 10 deletions

View File

@@ -1,24 +1,24 @@
import { Command, Mark, mergeAttributes } from '@tiptap/core'
import { Mark, mergeAttributes } from '@tiptap/core'
export interface SubscriptExtensionOptions {
HTMLAttributes: Object,
}
declare module '@tiptap/core' {
interface Commands {
interface Commands<ReturnType> {
subscript: {
/**
* Set a subscript mark
*/
setSubscript: () => Command,
setSubscript: () => ReturnType,
/**
* Toggle a subscript mark
*/
toggleSubscript: () => Command,
toggleSubscript: () => ReturnType,
/**
* Unset a subscript mark
*/
unsetSubscript: () => Command,
unsetSubscript: () => ReturnType,
}
}
}