fix typescript docs
This commit is contained in:
@@ -38,12 +38,14 @@ 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({
|
||||||
addCommands() {
|
addCommands() {
|
||||||
|
|||||||
Reference in New Issue
Block a user