Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Callback<T>

A method which is called once an asynchronous operation has completed, an alternative to using Promises.

Type parameters

  • T

    The type of object returned by the asynchronous operation.

Hierarchy

  • Callback

Callable

  • __call(err: Error | null, object?: T): void
  • A function which is called upon the completion of an asynchronous operation

    Parameters

    • err: Error | null

      The error object, if one occurred, otherwise null if the operation completed successfully.

    • Optional object: T

      The result of the asynchronous operation if it completed successfully. If err is defined, the presence of this value is unknown.

    Returns void

Generated using TypeDoc