git-subtree-dir: main-site git-subtree-mainline: 4d1daa39101c0a85ca6d916f1c31139faf39632a git-subtree-split: 5cefb4d1618bc54ae0e86830421a8c911900302c
32 lines
527 B
TypeScript
32 lines
527 B
TypeScript
import { BSONValue } from './bson_value';
|
|
|
|
/** @public */
|
|
export interface MinKeyExtended {
|
|
$minKey: 1;
|
|
}
|
|
|
|
/**
|
|
* A class representation of the BSON MinKey type.
|
|
* @public
|
|
* @category BSONType
|
|
*/
|
|
export class MinKey extends BSONValue {
|
|
get _bsontype(): 'MinKey' {
|
|
return 'MinKey';
|
|
}
|
|
|
|
/** @internal */
|
|
toExtendedJSON(): MinKeyExtended {
|
|
return { $minKey: 1 };
|
|
}
|
|
|
|
/** @internal */
|
|
static fromExtendedJSON(): MinKey {
|
|
return new MinKey();
|
|
}
|
|
|
|
inspect(): string {
|
|
return 'new MinKey()';
|
|
}
|
|
}
|