You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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()';
}
}