@chocbite/ts-lib-state 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -263,10 +263,10 @@ type StateEnumHelperList<K extends PropertyKey> = {
263
263
  [P in K]: EnumHelperEntry;
264
264
  };
265
265
  interface StateEnumRelated<L extends StateEnumHelperList<any>> extends StateRelatedBase {
266
- list: L;
267
- map<K extends keyof L, R>(func: (key: K, val: EnumHelperEntry) => R): R[];
266
+ list: State<L>;
267
+ map<K extends keyof L, R>(func: (key: K, val: EnumHelperEntry) => R): Promise<R[]>;
268
268
  }
269
- declare class StateEnumHelper<L extends StateEnumHelperList<any>, K extends PropertyKey = keyof L, R extends StateRelatedBase = StateEnumRelated<L>> extends StateHelper<K, OptionSome<R>> {
269
+ declare class StateEnumHelper<L extends StateEnumHelperList<any>, K extends PropertyKey = keyof L, R extends StateRelatedBase = StateEnumRelated<L>> extends StateHelper<K, OptionSome<R>> implements StateEnumRelated<L> {
270
270
  readonly list: State<L>;
271
271
  constructor(list: State<L>, writable?: State<boolean>);
272
272
  map<K extends keyof L, R>(func: (key: K, val: EnumHelperEntry) => R): Promise<R[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chocbite/ts-lib-state",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "State management library for TypeScript",
5
5
  "author": "chocolateandmilkwin",
6
6
  "license": "MIT",