docs: update content

This commit is contained in:
Philipp Kühn
2021-06-04 22:40:36 +02:00
parent ab5a81e3a8
commit 592f62ed0e
6 changed files with 23 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import { Node, mergeAttributes, Command } from '@tiptap/core'
import { Node, mergeAttributes } from '@tiptap/core'
export interface DetailsOptions {
HTMLAttributes: {
@@ -7,20 +7,20 @@ export interface DetailsOptions {
}
declare module '@tiptap/core' {
interface Commands {
interface Commands<ReturnType> {
details: {
/**
* Set a details node
*/
setDetails: () => Command,
setDetails: () => ReturnType,
/**
* Toggle a details node
*/
toggleDetails: () => Command,
toggleDetails: () => ReturnType,
/**
* Unset a details node
*/
unsetDetails: () => Command,
unsetDetails: () => ReturnType,
}
}
}