| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/lmgt/node_modules/bson/src/ |
| Current File : /home/livedhms/lmgt/node_modules/bson/src/max_key.ts |
import { BSONValue } from './bson_value';
/** @public */
export interface MaxKeyExtended {
$maxKey: 1;
}
/**
* A class representation of the BSON MaxKey type.
* @public
* @category BSONType
*/
export class MaxKey extends BSONValue {
get _bsontype(): 'MaxKey' {
return 'MaxKey';
}
/** @internal */
toExtendedJSON(): MaxKeyExtended {
return { $maxKey: 1 };
}
/** @internal */
static fromExtendedJSON(): MaxKey {
return new MaxKey();
}
inspect(): string {
return 'new MaxKey()';
}
}