docs: add type to nodeViews

This commit is contained in:
Nick the Sick 2024-09-24 18:51:01 +02:00
parent 60917600d6
commit 112d1495d6
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC

View File

@ -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)