Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Promise<T>

Type parameters

  • T

Hierarchy

  • Promise

Index

Methods

Methods

catch

  • catch<U>(fail?: function): Promise<U>
  • Type parameters

    • U

    Parameters

    • Optional fail: function
        • Parameters

          • err: any

          Returns Promise<U> | U

    Returns Promise<U>

finally

  • finally(fn: function): Promise<T>
  • Parameters

    • fn: function
        • (): void
        • Returns void

    Returns Promise<T>

then

  • then<U>(done?: function, fail?: function, info?: function): Promise<U>
  • This method is described in the Promise/A+ spec.

    Type parameters

    • U

    Parameters

    • Optional done: function
    • Optional fail: function
        • Parameters

          • err: any

          Returns Promise<any> | any

    • Optional info: function
        • (status: any): void
        • Parameters

          • status: any

          Returns void

    Returns Promise<U>

Generated using TypeDoc