UNPKG

jsonion

Version:

A lightweight JSON file-based database with nested data access and manipulation capabilities.

22 lines 881 B
export interface JSONionOptions { filePath: string; } export interface JSONionData { [key: string]: any; } export type JSONionOperation = "create" | "open" | "delete" | "rename" | "list" | "set" | "get" | "del" | "has" | "keys" | "clear" | "all" | "update" | "find" | "count" | "export" | "import" | "validation" | "read" | "write"; declare class JSONionError extends Error { operation: JSONionOperation; originalError?: unknown | undefined; constructor(operation: JSONionOperation, message: string, originalError?: unknown | undefined); } export interface ValidationResult { isValid: boolean; error?: string; } export { JSONionError }; export declare const dbError: typeof JSONionError; export type HarmDBOperation = JSONionOperation; export type HarmDBOptions = JSONionOptions; export type HarmDBData = JSONionData; //# sourceMappingURL=types.d.ts.map