Download backend/node_modules/bson/src/max_key.ts from chainr-ai/CHAINR: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/chainr-ai/CHAINR/resolve/main/backend/node_modules/bson/src/max_key.ts
- Command line
-
hf download hf://chainr-ai/CHAINR/backend/node_modules/bson/src/max_key.ts
-
curl -L -o max_key.ts https://huggingface.co/chainr-ai/CHAINR/resolve/main/backend/node_modules/bson/src/max_key.ts
635 Bytes
| 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(); | |
| } | |
| /** @internal */ | |
| [Symbol.for('nodejs.util.inspect.custom')](): string { | |
| return this.inspect(); | |
| } | |
| inspect(): string { | |
| return 'new MaxKey()'; | |
| } | |
| } | |