yini-parser
Version:
Readable configuration without YAML foot-guns or JSON noise. The official Node.js parser for YINI config format — An INI-inspired configuration format with clear nesting, explicit types, and predictable parsing.
18 lines (17 loc) • 930 B
TypeScript
import { ParseOptions } from '../../types';
import { TParserMode } from '../internalTypes';
export declare const getDefaultUserOptions: (mode: TParserMode) => {
includeDiagnostics: boolean;
includeTiming: boolean;
preserveUndefinedInMeta: boolean;
onDuplicateKey: import("../../types").OnDuplicateKey;
requireDocTerminator: import("../../types").DocumentTerminatorRule;
treatEmptyValueAsNull: import("../../types").EmptyValueRule;
quiet: boolean;
silent: boolean;
throwOnError: boolean;
strictMode: boolean;
failLevel: import("../../types").PreferredFailLevel;
includeMetadata: boolean;
};
export type TNormalizedUserOptions = Required<Pick<ParseOptions, 'strictMode' | 'failLevel' | 'includeMetadata' | 'includeDiagnostics' | 'includeTiming' | 'preserveUndefinedInMeta' | 'onDuplicateKey' | 'requireDocTerminator' | 'treatEmptyValueAsNull' | 'quiet' | 'silent' | 'throwOnError'>>;