mongo_types.js 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.CancellationToken = exports.TypedEventEmitter = exports.BSONType = void 0;
  4. const events_1 = require("events");
  5. /** @public */
  6. exports.BSONType = Object.freeze({
  7. double: 1,
  8. string: 2,
  9. object: 3,
  10. array: 4,
  11. binData: 5,
  12. undefined: 6,
  13. objectId: 7,
  14. bool: 8,
  15. date: 9,
  16. null: 10,
  17. regex: 11,
  18. dbPointer: 12,
  19. javascript: 13,
  20. symbol: 14,
  21. javascriptWithScope: 15,
  22. int: 16,
  23. timestamp: 17,
  24. long: 18,
  25. decimal: 19,
  26. minKey: -1,
  27. maxKey: 127
  28. });
  29. /**
  30. * Typescript type safe event emitter
  31. * @public
  32. */
  33. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  34. class TypedEventEmitter extends events_1.EventEmitter {
  35. }
  36. exports.TypedEventEmitter = TypedEventEmitter;
  37. /** @public */
  38. class CancellationToken extends TypedEventEmitter {
  39. }
  40. exports.CancellationToken = CancellationToken;
  41. //# sourceMappingURL=mongo_types.js.map