nodedb-json
Version:
A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities
5 lines (4 loc) • 427 B
TypeScript
import type { IndexDefinition, IndexDefinitions, IndexOptions, IndexValueMode } from '../types';
export declare function mergeIndexDefinitions(target: IndexDefinitions, source: IndexOptions | IndexDefinitions | any): void;
export declare function validateIndexDefinition(indexDefinition: any): asserts indexDefinition is IndexDefinition;
export declare function encodeIndexValue(value: unknown, mode?: IndexValueMode): string;