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 { export interface SubscriptExtensionOptions {
HTMLAttributes: Object, HTMLAttributes: Object,
} }
declare module '@tiptap/core' { declare module '@tiptap/core' {
interface Commands { interface Commands<ReturnType> {
subscript: { subscript: {
/** /**
* Set a subscript mark * Set a subscript mark
*/ */
setSubscript: () => Command, setSubscript: () => ReturnType,
/** /**
* Toggle a subscript mark * Toggle a subscript mark
*/ */
toggleSubscript: () => Command, toggleSubscript: () => ReturnType,
/** /**
* Unset a subscript mark * Unset a subscript mark
*/ */
unsetSubscript: () => Command, unsetSubscript: () => ReturnType,
} }
} }
} }

View File

@@ -1,24 +1,24 @@
import { Command, Mark, mergeAttributes } from '@tiptap/core' import { Mark, mergeAttributes } from '@tiptap/core'
export interface SuperscriptExtensionOptions { export interface SuperscriptExtensionOptions {
HTMLAttributes: Object, HTMLAttributes: Object,
} }
declare module '@tiptap/core' { declare module '@tiptap/core' {
interface Commands { interface Commands<ReturnType> {
superscript: { superscript: {
/** /**
* Set a superscript mark * Set a superscript mark
*/ */
setSuperscript: () => Command, setSuperscript: () => ReturnType,
/** /**
* Toggle a superscript mark * Toggle a superscript mark
*/ */
toggleSuperscript: () => Command, toggleSuperscript: () => ReturnType,
/** /**
* Unset a superscript mark * Unset a superscript mark
*/ */
unsetSuperscript: () => Command, unsetSuperscript: () => ReturnType,
} }
} }
} }