Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PullstateSingleton<S>

Type parameters

Hierarchy

  • PullstateSingleton

Index

Constructors

constructor

Properties

options

Methods

createAsyncAction

  • createAsyncAction<A, R, T>(action: TPullstateAsyncAction<A, R, T, S>, options?: ICreateAsyncActionOptions<A, R, T, S>): IOCreateAsyncActionOutput<A, R, T>
  • Type parameters

    • A = any

    • R = any

    • T: string = string

    Parameters

    • action: TPullstateAsyncAction<A, R, T, S>
    • Default value options: ICreateAsyncActionOptions<A, R, T, S> = {}

    Returns IOCreateAsyncActionOutput<A, R, T>

createAsyncActionDirect

  • createAsyncActionDirect<A, R>(action: (args: A) => Promise<R>, options?: ICreateAsyncActionOptions<A, R, string, S>): IOCreateAsyncActionOutput<A, R>
  • Type parameters

    • A: any = any

    • R: any = any

    Parameters

    • action: (args: A) => Promise<R>
        • (args: A): Promise<R>
        • Parameters

          • args: A

          Returns Promise<R>

    • Default value options: ICreateAsyncActionOptions<A, R, string, S> = {}

    Returns IOCreateAsyncActionOutput<A, R>

instantiate

useInstance

useStores

  • useStores(): S

Generated using TypeDoc