Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.10/mongoose/node_modules/bson/src/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.10/mongoose/node_modules/bson/src/min_key.ts

/** @public */
export interface MinKeyExtended {
  $minKey: 1;
}

/**
 * A class representation of the BSON MinKey type.
 * @public
 * @category BSONType
 */
export class MinKey {
  _bsontype!: 'MinKey';

  constructor() {
    if (!(this instanceof MinKey)) return new MinKey();
  }

  /** @internal */
  toExtendedJSON(): MinKeyExtended {
    return { $minKey: 1 };
  }

  /** @internal */
  static fromExtendedJSON(): MinKey {
    return new MinKey();
  }

  /** @internal */
  [Symbol.for('nodejs.util.inspect.custom')](): string {
    return this.inspect();
  }

  inspect(): string {
    return 'new MinKey()';
  }
}

Object.defineProperty(MinKey.prototype, '_bsontype', { value: 'MinKey' });

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists