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.

28 lines
746 B
TypeScript

1 year ago
import { BSONValue } from './bson_value';
/** @public */
export interface BSONSymbolExtended {
$symbol: string;
}
/**
* A class representation of the BSON Symbol type.
* @public
* @category BSONType
*/
export declare class BSONSymbol extends BSONValue {
get _bsontype(): 'BSONSymbol';
value: string;
/**
* @param value - the string representing the symbol.
*/
constructor(value: string);
/** Access the wrapped string value. */
valueOf(): string;
toString(): string;
inspect(): string;
toJSON(): string;
/** @internal */
toExtendedJSON(): BSONSymbolExtended;
/** @internal */
static fromExtendedJSON(doc: BSONSymbolExtended): BSONSymbol;
}
//# sourceMappingURL=symbol.d.ts.map