##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r2:8ec37bf1b4d1 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
when.d.ts
7 lines | 465 B | video/mp2t | TypeScriptLexer
import { PromiseOrValue } from "./interfaces";
import { PromiseCallback, PromiseErrback, PromiseProgback } from "./promise/Promise";
/**
* Transparently applies callbacks to values and/or promises.
*/
export declare function when<T>(value: PromiseOrValue<T>): PromiseLike<T>;
export declare function when<T, U1, U2>(value: PromiseOrValue<T>, callback?: PromiseCallback<T, U1>, errback?: PromiseErrback<U2>, progress?: PromiseProgback): PromiseOrValue<U1 | U2>;