UNPKG

@adonisjs/fold

Version:

A simple and straight forward implementation for IoC container in JavaScript

13 lines (12 loc) 326 B
/** * Exports the `resolve` and the reject methods as part of the * class public API. * * It allows resolving and rejecting promises outside of the * class constructor. */ export declare class Deferred<T> { resolve: (value: T | PromiseLike<T>) => void; reject: (reason?: any) => void; promise: Promise<T>; }