fix: revert addition of as prop

This commit is contained in:
Abbey Yacoe
2025-05-22 16:31:50 +02:00
parent 1fb7a5c98a
commit b310586dfb
5 changed files with 29 additions and 48 deletions
-4
View File
@@ -23,10 +23,6 @@ export type NodeBase<
data: NodeData;
/** Type of node defined in `nodeTypes`. */
type?: NodeType;
/** Custom element type for rendering the node (e.g., 'div', 'li', etc.).
* @default 'div'
*/
as?: Extract<keyof HTMLElementTagNameMap, 'div' | 'li' | 'ul' | 'ol'>;
/**
* Only relevant for default, source, target nodeType. Controls source position.
* @example 'right', 'left', 'top', 'bottom'