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.

35 lines
965 B
TypeScript

import { BSONValue } from './bson_value';
import type { EJSONOptions } from './extended_json';
/** @public */
export interface DoubleExtended {
$numberDouble: string;
}
/**
* A class representation of the BSON Double type.
* @public
* @category BSONType
*/
export declare class Double extends BSONValue {
get _bsontype(): 'Double';
value: number;
/**
* Create a Double type
*
* @param value - the number we want to represent as a double.
*/
constructor(value: number);
/**
* Access the number value.
*
* @returns returns the wrapped double number.
*/
valueOf(): number;
toJSON(): number;
toString(radix?: number): string;
/** @internal */
toExtendedJSON(options?: EJSONOptions): number | DoubleExtended;
/** @internal */
static fromExtendedJSON(doc: DoubleExtended, options?: EJSONOptions): number | Double;
inspect(): string;
}
//# sourceMappingURL=double.d.ts.map