fix typescript docs

This commit is contained in:
Philipp Kühn
2021-02-16 18:47:44 +01:00
parent cd31624ab4
commit 21b93e65f8

View File

@@ -38,11 +38,13 @@ import { Command, Extension } from '@tiptap/core'
declare module '@tiptap/core' { declare module '@tiptap/core' {
interface Commands { interface Commands {
customExtension: {
/** /**
* Comments will be added to the autocomplete. * Comments will be added to the autocomplete.
*/ */
yourCommand: (someProp: any) => Command, yourCommand: (someProp: any) => Command,
} }
}
} }
const CustomExtension = Extension.create({ const CustomExtension = Extension.create({