mobx-keystone-mindreframer
Version:
A MobX powered state management solution based on data trees with first class support for Typescript, snapshots, patches and much more
15 lines (12 loc) • 335 B
text/typescript
/**
* Property name (if the parent is an object) or index number (if the parent is an array).
*/
export type PathElement = string | number
/**
* Path from a parent to a child.
*/
export type Path = ReadonlyArray<string | number>
/**
* Path from a parent to a child (writable).
*/
export type WritablePath = (string | number)[]