UNPKG

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.

9 lines (8 loc) 478 B
import { ParseOptions } from '../../types'; import { IParseCoreOptions, TBailSensitivityLevel, TParserMode } from '../internalTypes'; /** * Map user parse options to core options. */ export declare const toCoreOptions: (userOpts: Required<ParseOptions>, bailLevel?: TBailSensitivityLevel) => IParseCoreOptions; export declare const isOptionsObjectForm: (v: unknown) => v is ParseOptions; export declare const inferModeFromArgs: (arg2?: boolean | ParseOptions) => TParserMode;