mobx-bonsai
Version:
A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding
11 lines (10 loc) • 367 B
TypeScript
/**
* Returns a reactive Map-like view of the given object.
*
* The input must be a plain object or an observable object.
*
* @template V The type of the values in the object.
* @param data The plain or observable object to wrap as a Map.
* @returns A Map-like view of the object.
*/
export declare function asMap<V>(data: Record<string, V>): Map<string, V>;