fix types
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
import { Command, Mark, mergeAttributes } from '@tiptap/core'
|
||||
import { Mark, mergeAttributes } from '@tiptap/core'
|
||||
|
||||
export interface SuperscriptExtensionOptions {
|
||||
HTMLAttributes: Object,
|
||||
}
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands {
|
||||
interface Commands<ReturnType> {
|
||||
superscript: {
|
||||
/**
|
||||
* Set a superscript mark
|
||||
*/
|
||||
setSuperscript: () => Command,
|
||||
setSuperscript: () => ReturnType,
|
||||
/**
|
||||
* Toggle a superscript mark
|
||||
*/
|
||||
toggleSuperscript: () => Command,
|
||||
toggleSuperscript: () => ReturnType,
|
||||
/**
|
||||
* Unset a superscript mark
|
||||
*/
|
||||
unsetSuperscript: () => Command,
|
||||
unsetSuperscript: () => ReturnType,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user