Skip to content

Latest commit

 

History

History
128 lines (61 loc) · 1.79 KB

File metadata and controls

128 lines (61 loc) · 1.79 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > LegacyAdapters

LegacyAdapters class

Helper functions used when interacting with APIs that do not follow modern coding practices.

Signature:

export declare class LegacyAdapters 

Methods

Method

Modifiers

Description

convertCallbackToPromise(fn)

static

This function wraps a function with a callback in a promise.

convertCallbackToPromise(fn, arg1)

static

convertCallbackToPromise(fn, arg1, arg2)

static

convertCallbackToPromise(fn, arg1, arg2, arg3)

static

convertCallbackToPromise(fn, arg1, arg2, arg3, arg4)

static

scrubError(error)

static

Normalizes an object into an Error object.