Skip to Content
参考类型

NodeTypes

GitHub上的源代码 

NodeTypes 类型用于定义自定义节点类型。对象中的每个键表示一个节点类型,值是应为该类型渲染的组件。

🌐 The NodeTypes type is used to define custom node types. Each key in the object represents a node type, and the value is the component that should be rendered for that type.

type NodeTypes = { [key: string]: React.ComponentType<NodeProps>; };
Last updated on