@hadesz/monitor
Version:
A complete server monitoring system with agents, server and dashboard
37 lines (30 loc) • 635 B
text/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();
}
/** @internal */
[Symbol.for('nodejs.util.inspect.custom')](): string {
return this.inspect();
}
inspect(): string {
return 'new MinKey()';
}
}