UNPKG

mobx-keystone

Version:

A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more

13 lines (12 loc) 326 B
/** * 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<PathElement>; /** * Path from a parent to a child (writable). */ export type WritablePath = PathElement[];