Skip to main content
Module

x/web_bson/src/max_key.ts

web_bson is a fork from mongodb/js-bson
Go to Latest
File
/** @public */export interface MaxKeyExtended { $maxKey: 1;}
/** * A class representation of the BSON MaxKey type. * @public */export class MaxKey { _bsontype = "MaxKey"; constructor() { if (!(this instanceof MaxKey)) return new MaxKey(); }
/** @internal */ toExtendedJSON(): MaxKeyExtended { return { $maxKey: 1 }; }
/** @internal */ static fromExtendedJSON(): MaxKey { return new MaxKey(); }
/** @internal */ [Symbol.for("Deno.customInspect")](): string { return this.inspect(); }
inspect(): string { return "new MaxKey()"; }}