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 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,
}
}
}