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.

13 lines (12 loc) 446 B
import { ErrorDataHandler } from './errorDataHandler'; import { IYiniAST } from './internalTypes'; /** * Construct the final JavaScript Object. * Transforms the AST to the plain JS object. * * - Keys are used exactly as-is. * - Order of properties matches the AST traversal order. * * @note All `tag` fields MUST be ignored. */ export declare const astToObject: (ast: IYiniAST, errorHandler: ErrorDataHandler) => Record<string, unknown>;