package js.lib; typedef PromiseConstructor = { /** Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. **/ @:overload(function(values:ts.Tuple10, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>, ts.AnyOf2, T6>, ts.AnyOf2, T7>, ts.AnyOf2, T8>, ts.AnyOf2, T9>, ts.AnyOf2, T10>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple9, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>, ts.AnyOf2, T6>, ts.AnyOf2, T7>, ts.AnyOf2, T8>, ts.AnyOf2, T9>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple8, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>, ts.AnyOf2, T6>, ts.AnyOf2, T7>, ts.AnyOf2, T8>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple7, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>, ts.AnyOf2, T6>, ts.AnyOf2, T7>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple6, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>, ts.AnyOf2, T6>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple5, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>, ts.AnyOf2, T5>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple4, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>, ts.AnyOf2, T4>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple3, T1>, ts.AnyOf2, T2>, ts.AnyOf2, T3>>):js.lib.Promise> { }) @:overload(function(values:ts.Tuple2, T1>, ts.AnyOf2, T2>>):js.lib.Promise> { }) @:overload(function(values:haxe.ds.ReadOnlyArray, T>>):js.lib.Promise> { }) function all(values:Iterable, TAll>>):js.lib.Promise>; /** Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected. Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected. Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected. **/ @:overload(function(values:haxe.ds.ReadOnlyArray):js.lib.Promise { }) @:overload(function(values:Iterable):js.lib.Promise { }) function race(values:Iterable, T>>):js.lib.Promise; /** A reference to the prototype. **/ final prototype : js.lib.Promise; /** Creates a new rejected promise for the provided reason. **/ function reject(?reason:Dynamic):js.lib.Promise; /** Creates a new resolved promise for the provided value. Creates a new resolved promise . **/ @:overload(function():js.lib.Promise { }) function resolve(value:ts.AnyOf2, T>):js.lib.Promise; };