Skip to main content
Module

x/web_bson/src/bson.ts>Int32

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
class Int32
Re-export
import { Int32 } from "https://deno.land/x/web_bson@v0.2.4/src/bson.ts";

A class representation of a BSON Int32 type.

Constructors

new
Int32(value: number | string)

Create an Int32 type

Properties

_bsontype: string
value: number

Methods

toExtendedJSON(options?: EJSONOptions): number | Int32Extended
toJSON(): number
toString(radix?: number): string
valueOf(): number

Access the number value.

Static Methods

fromExtendedJSON(doc: Int32Extended, options?: EJSONOptions): number | Int32