Comparing version 0.0.1-alpha-8 to 0.0.1-alpha-9
@@ -59,5 +59,5 @@ type Resolver<T> = (payload: T) => any; | ||
type FamilyState<T, Family extends Record<Id, T>, Id extends string = string> = ReadableState<Family> & { | ||
type FamilyState<T, Id extends string = string> = ReadableState<Record<Id, T>> & { | ||
events: { | ||
changed: AwaitableEvent<Family>; | ||
changed: AwaitableEvent<Record<Id, T>>; | ||
}; | ||
@@ -112,4 +112,4 @@ getNode: (id: Id) => T; | ||
type Id$1 = string; | ||
declare const familyState: <T, Initializer extends (id: Id$1) => T | Promise<T>, NodeType extends ReturnType<Initializer> extends PromiseLike<T> ? AsyncState<T> : State<T>, Family extends Record<string, NodeType>>(initializer: Initializer) => FamilyState<NodeType, Family>; | ||
type Id = string; | ||
declare const familyState: <T, Initializer extends (id: Id) => T | Promise<T>, Family extends Record<string, NodeType>, NodeType = ReturnType<Initializer> extends PromiseLike<infer Q> ? AsyncState<Q> : State<ReturnType<Initializer>>>(initializer: Initializer) => FamilyState<NodeType>; | ||
@@ -116,0 +116,0 @@ declare const scenario: (scenarioFn: () => Promise<any>) => Promise<never>; |
{ | ||
"name": "awai", | ||
"version": "0.0.1-alpha-8", | ||
"version": "0.0.1-alpha-9", | ||
"author": "Yuriy Yakym", | ||
@@ -5,0 +5,0 @@ "description": "State management library", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77390
722