NotificationFactories.js 499 B

123456789101112131415
  1. export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();
  2. export function errorNotification(error) {
  3. return createNotification('E', undefined, error);
  4. }
  5. export function nextNotification(value) {
  6. return createNotification('N', value, undefined);
  7. }
  8. export function createNotification(kind, value, error) {
  9. return {
  10. kind: kind,
  11. value: value,
  12. error: error,
  13. };
  14. }
  15. //# sourceMappingURL=NotificationFactories.js.map