UNPKG

@openland/foundationdb-core

Version:

Node.js bindings for the FoundationDB database

15 lines (14 loc) 617 B
/// <reference types="node" /> import { DatabaseOptions, NetworkOptions, TransactionOptions } from './opts.g'; export declare type OptionData = { [name: string]: { code: number; description: string; deprecated?: true; type: 'string' | 'int' | 'bytes' | 'none'; paramDescription?: string; }; }; export declare type OptVal = string | number | Buffer | null; export declare type OptionIter = (code: number, val: OptVal) => void; export declare const eachOption: (data: OptionData, _opts: NetworkOptions | DatabaseOptions | TransactionOptions, iterfn: OptionIter) => void;