NodeTypes

Source on GitHub

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>;
};