Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api

Index

Type Aliases

Definitions: { configs?: Configs } & {}
Dictionary<T>: {}

Type Parameters

  • T = any

Type declaration

  • [key: string]: T
HttpDriver: ((options: HttpOptions) => Promise<HttpResult>)

Type declaration

HttpMethod: "get" | "post" | "head" | "options" | "put" | "delete" | "patch"
Mappings<T>: { [ key in keyof T]: T[key] extends Resolver<infer P, infer R> ? Saga<[P], R> : never }

Type Parameters

  • T

OptionFactory<P, T>: ((payload: P) => T) | T

Type Parameters

  • P = void

  • T = any

Resolver<P, R>: ((context: ApiContext) => Saga<[P], R>)

Type Parameters

  • P

  • R

Type declaration

RetryOptions: { delay?: number | ((retry: VoidFunction) => void); onRetry?: VoidFunction; retries?: number; when?: any }

Type declaration

  • Optional delay?: number | ((retry: VoidFunction) => void)
  • Optional onRetry?: VoidFunction
  • Optional retries?: number
  • when?:function
    • when(error: Error): boolean

Functions

  • define<T>(__namedParameters: T): Mappings<T>

Generated using TypeDoc