Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Type aliases

ActionUnion

ActionUnion: { [Key in keyof A]: A[Key] extends (...args: any[]) => any ? ReturnType<A[Key]> extends IterableIterator<any> ? never : ReturnType<A[Key]> : never; }[keyof A]

ExtractActions

ExtractActions: { [Key in keyof Base]: { [Key in keyof Base[Key]]: Base[Key][Key] extends (...args: any[]) => any ? ReturnType<Base[Key][Key]> extends IterableIterator<any> ? never : ReturnType<Base[Key][Key]> : never; }[keyof Base[Key]]; }[keyof Base]

Extract Actions to be used in reducer

example

type Actions = ExtractActions<loginAction | logoutAction>

actionHandler

actionHandler: actionHandler<T, P, H, R>

handleAction

handleAction: P extends undefined ? () => IterableIterator<R> : (args: P) => IterableIterator<R> | H

invokeSignature

invokeSignature: invokeSignature<T, P, R>

Functions

Const actionCreator

  • actionCreator<T, P, R>(type: T): (Anonymous function)
  • Action Creator

    Type parameters

    • T

    • P

    • R

    Parameters

    • type: T

      Action Type

    Returns (Anonymous function)

createAction

  • createAction<T>(type: T): function
  • createAction<T, ST>(type: T, successType: ST): function
  • createAction<T, ST, FT>(type: T, successType: ST, failureType: FT): function

Const promiseHandler

  • promiseHandler<T, P, R>(innerSaga: function): innerFunction
  • Automatically resolves promise of Action.promise

    Type parameters

    • T: string

    • P

    • R

    Parameters

    • innerSaga: function

      Generator Function for redux-saga

        • (args?: P): IterableIterator<R>
        • Parameters

          • Optional args: P

          Returns IterableIterator<R>

    Returns innerFunction

Const put

reg

  • reg<T>(t: T): object & T
  • Generator return value

    Type parameters

    • T

    Parameters

    • t: T

      any

    Returns object & T

Generated using TypeDoc