interface Options {
    bundleStrings?: boolean;
    coercibleKeyAsNumber?: boolean;
    copyBuffers?: boolean;
    encodeUndefinedAsNil?: boolean;
    int64AsNumber?: boolean;
    int64AsType?: "string" | "number" | "bigint";
    largeBigIntToFloat?: boolean;
    mapAsEmptyObject?: boolean;
    mapsAsObjects?: boolean;
    maxOwnStructures?: number;
    maxSharedStructures?: number;
    moreTypes?: boolean;
    onInvalidDate?: (() => any);
    sequential?: boolean;
    setAsEmptyObject?: boolean;
    shouldShareStructure?: ((keys: string[]) => boolean);
    structuredClone?: boolean;
    structures?: {}[];
    useBigIntExtension?: boolean;
    useFloat32?: FLOAT32_OPTIONS;
    useRecords?: boolean | ((value: any) => boolean);
    useTimestamp32?: boolean;
    variableMapSize?: boolean;
    writeFunction?: (() => any);
    getStructures?(): {}[];
    saveStructures?(structures: {}[]): boolean | void;
}

Methods

  • Returns {}[]

  • Parameters

    • structures: {}[]

    Returns boolean | void

Properties

bundleStrings?: boolean
coercibleKeyAsNumber?: boolean
copyBuffers?: boolean
encodeUndefinedAsNil?: boolean
int64AsNumber?: boolean

use int64AsType: 'number'

int64AsType?: "string" | "number" | "bigint"
largeBigIntToFloat?: boolean
mapAsEmptyObject?: boolean
mapsAsObjects?: boolean
maxOwnStructures?: number
maxSharedStructures?: number
moreTypes?: boolean
onInvalidDate?: (() => any)
sequential?: boolean
setAsEmptyObject?: boolean
shouldShareStructure?: ((keys: string[]) => boolean)
structuredClone?: boolean
structures?: {}[]
useBigIntExtension?: boolean
useFloat32?: FLOAT32_OPTIONS
useRecords?: boolean | ((value: any) => boolean)
useTimestamp32?: boolean
variableMapSize?: boolean
writeFunction?: (() => any)