Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Functions

Variables

isPromise

isPromise: any = require('is-promise')

promisify

promisify: any

Functions

to

  • to<T, U>(promiseOrFunction: Promise<T> | function, errorExt?: undefined | object): Promise<[U | null, T | undefined]>
  • Type parameters

    • T

    • U

    Parameters

    • promiseOrFunction: Promise<T> | function
    • Optional errorExt: undefined | object

      Additional Information you can pass to the err object

    Returns Promise<[U | null, T | undefined]>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc