31
node_modules/bson/src/max_key.ts
generated
vendored
Normal file
31
node_modules/bson/src/max_key.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
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()';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user