Options
All
  • Public
  • Public/Protected
  • All
Menu

advanced-promises

Index

Type aliases

AbortablePromiseExecutor

AbortablePromiseExecutor<T>: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void, aapi: AbortApi) => void

Type parameters

  • T

Type declaration

    • (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void, aapi: AbortApi): void
    • Parameters

      • resolve: (value?: T | PromiseLike<T>) => void
          • (value?: T | PromiseLike<T>): void
          • Parameters

            • Optional value: T | PromiseLike<T>

            Returns void

      • reject: (reason?: any) => void
          • (reason?: any): void
          • Parameters

            • Optional reason: any

            Returns void

      • aapi: AbortApi

      Returns void

Executor

Executor<T>: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void

Type parameters

  • T

Type declaration

    • (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void): void
    • Parameters

      • resolve: (value?: T | PromiseLike<T>) => void
          • (value?: T | PromiseLike<T>): void
          • Parameters

            • Optional value: T | PromiseLike<T>

            Returns void

      • reject: (reason?: any) => void
          • (reason?: any): void
          • Parameters

            • Optional reason: any

            Returns void

      Returns void

OnAbortCallback

OnAbortCallback: () => void | PromiseLike<void>

Type declaration

    • (): void | PromiseLike<void>
    • Returns void | PromiseLike<void>

OnAbortHandle

OnAbortHandle: unknown | PromiseLike<unknown>

Response

Type parameters

  • T

Variables

Const expect

expect: any = chai.expect

Const should

should: any = chai.should

Functions

isResponseReject

  • isResponseReject<T>(response: ResponseReject): response is ResponseReject

isResponseResolve

  • isResponseResolve<T>(response: Response<T>): response is ResponseResolve<T>

Generated using TypeDoc