min_key.js 909 B

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.MinKey = void 0;
  4. /**
  5. * A class representation of the BSON MinKey type.
  6. * @public
  7. */
  8. var MinKey = /** @class */ (function () {
  9. function MinKey() {
  10. if (!(this instanceof MinKey))
  11. return new MinKey();
  12. }
  13. /** @internal */
  14. MinKey.prototype.toExtendedJSON = function () {
  15. return { $minKey: 1 };
  16. };
  17. /** @internal */
  18. MinKey.fromExtendedJSON = function () {
  19. return new MinKey();
  20. };
  21. /** @internal */
  22. MinKey.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
  23. return this.inspect();
  24. };
  25. MinKey.prototype.inspect = function () {
  26. return 'new MinKey()';
  27. };
  28. return MinKey;
  29. }());
  30. exports.MinKey = MinKey;
  31. Object.defineProperty(MinKey.prototype, '_bsontype', { value: 'MinKey' });
  32. //# sourceMappingURL=min_key.js.map