UNPKG

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

3 lines (2 loc) 195 B
export declare function getOrCreate<K, V>(map: Map<K, V>, key: K, create: () => V): V; export declare function getOrCreate<K extends object, V>(map: WeakMap<K, V>, key: K, create: () => V): V;