UNPKG

nuvira-parser

Version:

Nuvira Database. New Database format (Readable & Easy to use), (Inbuilt Schema & constraints & rules & relations).

25 lines (21 loc) 472 B
export type ParsedArrayItem = { key: string; value: any; type: string; }; export type ParseArrayResult = { arrayItems: ParsedArrayItem[]; arrayType: string; }; export type ParsedObjectKeyValue = { key: string; value: any; type: string; }; export interface Error { line: number | null; message: string; } export type ParsedValueResult = | { value: any; type: string } | { error: string; type: 'error' };