mobx-keystone
Version:
A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more
12 lines (11 loc) • 472 B
TypeScript
/**
* Returns all the children objects (this is, excluding primitives) of an object.
*
* @param node Object 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 observable set with the children.
*/
export declare function getChildrenObjects(node: object, options?: {
deep?: boolean;
}): ReadonlySet<object>;