Simple feedback server
This commit is contained in:
8
feedback-server/externs/js/lib/PromiseLike.hx
Normal file
8
feedback-server/externs/js/lib/PromiseLike.hx
Normal file
@@ -0,0 +1,8 @@
|
||||
package js.lib;
|
||||
|
||||
typedef PromiseLike<T> = {
|
||||
/**
|
||||
Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
**/
|
||||
function then<TResult1, TResult2>(?onfulfilled:(value:T) -> ts.AnyOf2<PromiseLike<TResult1>, TResult1>, ?onrejected:(reason:Dynamic) -> ts.AnyOf2<PromiseLike<TResult2>, TResult2>):PromiseLike<ts.AnyOf2<TResult1, TResult2>>;
|
||||
};
|
||||
Reference in New Issue
Block a user