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) • 461 B
TypeScript
import { ParseOptions } from 'querystring';
import { IParseCoreOptions, TExactMode } from '../internalTypes';
export declare const matchModeFromParseOptions: (parserOptions: ParseOptions) => TExactMode;
/**
* Determines the effective parse mode from the current options (option rules).
* @returns 'custom' if no exact match exists, otherwise the matched mode.
*/
export declare const matchModeFromCoreOptions: (coreOptions: IParseCoreOptions) => TExactMode;