windowTime.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var rxjs_1 = require("rxjs");
  4. var internal_compatibility_1 = require("rxjs/internal-compatibility");
  5. var operators_1 = require("rxjs/operators");
  6. function windowTime(windowTimeSpan) {
  7. var scheduler = rxjs_1.asyncScheduler;
  8. var windowCreationInterval = null;
  9. var maxWindowSize = Number.POSITIVE_INFINITY;
  10. if (internal_compatibility_1.isScheduler(arguments[3])) {
  11. scheduler = arguments[3];
  12. }
  13. if (internal_compatibility_1.isScheduler(arguments[2])) {
  14. scheduler = arguments[2];
  15. }
  16. else if (internal_compatibility_1.isNumeric(arguments[2])) {
  17. maxWindowSize = arguments[2];
  18. }
  19. if (internal_compatibility_1.isScheduler(arguments[1])) {
  20. scheduler = arguments[1];
  21. }
  22. else if (internal_compatibility_1.isNumeric(arguments[1])) {
  23. windowCreationInterval = arguments[1];
  24. }
  25. return operators_1.windowTime(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler)(this);
  26. }
  27. exports.windowTime = windowTime;
  28. //# sourceMappingURL=windowTime.js.map