UNPKG

mobx-bonsai

Version:

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

13 lines (12 loc) 549 B
export declare function getChildrenNodesWithTargetSet(node: object, targetSet: Set<object>): void; /** * Returns all the children nodes (this is, excluding primitives) of a node. * * @param node Node to get the list of children from. * @param options An optional object with the `deep` option (defaults to false) to true to get * the children deeply or false to get them shallowly. * @returns A readonly set with the children. */ export declare function getChildrenNodes(node: object, options?: { deep?: boolean; }): ReadonlySet<object>;