timestamp.js 377 B

1234567
  1. import { dateTimestampProvider } from '../scheduler/dateTimestampProvider';
  2. import { map } from './map';
  3. export function timestamp(timestampProvider) {
  4. if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; }
  5. return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); });
  6. }
  7. //# sourceMappingURL=timestamp.js.map