mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:31:47 +08:00
docs: update types to reflect setting plugin and pluginkey for meta
This commit is contained in:
parent
c0e631f875
commit
597c78156a
@ -1,3 +1,5 @@
|
||||
import type { Plugin, PluginKey } from '@tiptap/pm/state'
|
||||
|
||||
import { RawCommands } from '../types.js'
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
@ -9,7 +11,7 @@ declare module '@tiptap/core' {
|
||||
* @param value The value to store.
|
||||
* @example editor.commands.setMeta('foo', 'bar')
|
||||
*/
|
||||
setMeta: (key: string, value: any) => ReturnType,
|
||||
setMeta: (key: string | Plugin | PluginKey, value: any) => ReturnType,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user