Type alias SetState<T>

SetState<T>: (<V>(value: V, meta?: {
    logger?: Logger;
}) => V extends AnyFunction<any, Promise<any>> ? Promise<T> : T)

Type Parameters

  • T

Type declaration

    • <V>(value: V, meta?: {
          logger?: Logger;
      }): V extends AnyFunction<any, Promise<any>> ? Promise<T> : T
    • set or update the state.

      Type Parameters

      Parameters

      • value: V
      • Optional meta: {
            logger?: Logger;
        }
        • Optional logger?: Logger

      Returns V extends AnyFunction<any, Promise<any>> ? Promise<T> : T

Generated using TypeDoc