Promise.hx 2.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* This file is generated, do not edit! Visit http://api.jquery.com/ for API documentation. */
  2. package js.jquery;
  3. @:native("$.Promise") typedef Promise = {
  4. /**
  5. Add handlers to be called when the Deferred object is either resolved or rejected.
  6. **/
  7. public function always(alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
  8. /**
  9. Add handlers to be called when the Deferred object is resolved.
  10. **/
  11. public function done(doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
  12. /**
  13. Add handlers to be called when the Deferred object is rejected.
  14. **/
  15. public function fail(failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
  16. /**
  17. Utility method to filter and/or chain Deferreds.
  18. **/
  19. @:overload(function(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise { })
  20. public function pipe(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function):js.jquery.Promise;
  21. /**
  22. Add handlers to be called when the Deferred object generates progress notifications.
  23. **/
  24. public function progress(progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>, ?progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>):js.jquery.Deferred;
  25. /**
  26. Determine the current state of a Deferred object.
  27. **/
  28. public function state():String;
  29. /**
  30. Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
  31. **/
  32. public function then(doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise;
  33. }