SetState<T>: (<V>(value: V, meta?: {
logger?: Logger;
}) => V extends AnyFunction<any, Promise<any>> ? Promise<T> : T)
Type declaration
-
- <V>(value: V, meta?: {
logger?: Logger;
}): V extends AnyFunction<any, Promise<any>> ? Promise<T> : T
-
Parameters
-
value: V
-
Optional
meta: {
logger?: Logger;
}
Returns V extends AnyFunction<any, Promise<any>> ? Promise<T> : T
set or update the state.