mobx-bonsai
Version:
A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding
16 lines (14 loc) • 372 B
text/typescript
import { BaseNodeType } from "./BaseNodeType"
import { NodeTypeKey, NodeWithAnyType } from "./nodeType"
/**
* Represents a node type with associated lifecycle and behavior
*
* @template TNode - Node structure that adheres to this type
*/
export type TypedNodeType<TNode extends NodeWithAnyType> = BaseNodeType<
TNode,
"typed",
NodeTypeKey,
never,
unknown
>