timestamp.js 574 B

123456789101112131415161718
  1. /** PURE_IMPORTS_START _scheduler_async,_map PURE_IMPORTS_END */
  2. import { async } from '../scheduler/async';
  3. import { map } from './map';
  4. export function timestamp(scheduler) {
  5. if (scheduler === void 0) {
  6. scheduler = async;
  7. }
  8. return map(function (value) { return new Timestamp(value, scheduler.now()); });
  9. }
  10. var Timestamp = /*@__PURE__*/ (function () {
  11. function Timestamp(value, timestamp) {
  12. this.value = value;
  13. this.timestamp = timestamp;
  14. }
  15. return Timestamp;
  16. }());
  17. export { Timestamp };
  18. //# sourceMappingURL=timestamp.js.map