Deferredtype

{
	promise: Promise<T>;
	resolve: ValueCallback<T>;
	reject: ErrorCallback;
}
PropertyType
.promisePromise<T>
required
.resolveValueCallback<T>
A callback is a function that is called when something happens with a value. required
.rejectErrorCallback
Function that is called when something errors. required
Type
Promise
ValueCallback
A callback is a function that is called when something happens with a value.
ErrorCallback
Function that is called when something errors.

Deferred allows you to access the internal resolve/reject callbacks of a Promise.