@magmonium/one 0.4.81 → 0.4.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -1368,6 +1368,14 @@ export declare function existsInMap(id: string | undefined, map: Record<string,
|
|
|
1368
1368
|
* map is absent too.
|
|
1369
1369
|
*/
|
|
1370
1370
|
export declare function notExistsInMap(id: string | undefined, map: Record<string, unknown> | undefined): boolean;
|
|
1371
|
+
/**
|
|
1372
|
+
* The map with `data` held under `id` — the OneFunction an OutcomeTransform
|
|
1373
|
+
* lands one row into a keyed StateProperty with (ADR 0205): `loadCoin(id)`
|
|
1374
|
+
* answers one coin, and `coinsById[id]` is where it goes. Every other entry the
|
|
1375
|
+
* map held is kept. While the id or the data is missing the map is answered
|
|
1376
|
+
* unchanged, so a landing with nothing to place never clears the store.
|
|
1377
|
+
*/
|
|
1378
|
+
export declare function setInMap<T>(id: string | undefined, data: T | undefined, map: Record<string, T> | undefined): Record<string, T>;
|
|
1371
1379
|
export declare function createMap<T extends object>(elems: T[], key?: keyof T | 'id', elemMap?: Record<string, T>): Record<string, T>;
|
|
1372
1380
|
/**
|
|
1373
1381
|
* `value` as a member of `values` — a string enum's object — or `undefined`
|