min_key.js 931 B

123456789101112131415161718192021222324252627282930313233
  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. * @category BSONType
  8. */
  9. var MinKey = /** @class */ (function () {
  10. function MinKey() {
  11. if (!(this instanceof MinKey))
  12. return new MinKey();
  13. }
  14. /** @internal */
  15. MinKey.prototype.toExtendedJSON = function () {
  16. return { $minKey: 1 };
  17. };
  18. /** @internal */
  19. MinKey.fromExtendedJSON = function () {
  20. return new MinKey();
  21. };
  22. /** @internal */
  23. MinKey.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
  24. return this.inspect();
  25. };
  26. MinKey.prototype.inspect = function () {
  27. return 'new MinKey()';
  28. };
  29. return MinKey;
  30. }());
  31. exports.MinKey = MinKey;
  32. Object.defineProperty(MinKey.prototype, '_bsontype', { value: 'MinKey' });
  33. //# sourceMappingURL=min_key.js.map