Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "promisify"

Index

Functions

Functions

promisify

  • promisify<T>(fn: Function, scope?: any): Function
  • Wrap an async function which uses a callback for completion in a Promise so it can be used with await.

    export
    template

    T Return type

    Type parameters

    • T

    Parameters

    • fn: Function

      Function to execute

    • Default value scope: any = null

    Returns Function

    Promise wrapper function

Generated using TypeDoc