mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
docs: add type to nodeViews
This commit is contained in:
parent
60917600d6
commit
112d1495d6
@ -260,7 +260,7 @@ export class ExtensionManager {
|
||||
* Get all node views from the extensions.
|
||||
* @returns An object with all node views where the key is the node name and the value is the node view function
|
||||
*/
|
||||
get nodeViews() {
|
||||
get nodeViews(): Record<string, NodeViewConstructor> {
|
||||
const { editor } = this
|
||||
const { nodeExtensions } = splitExtensions(this.extensions)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user