UNPKG

mobx-bonsai

Version:

A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding

9 lines (8 loc) 362 B
import { BaseNodeType } from "./BaseNodeType"; import { NodeWithAnyType, NodeTypeKey } 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>;