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 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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user