UNPKG

@notjustcoders/ioc-arise

Version:

Arise type-safe IoC containers from your code. Zero overhead, zero coupling.

41 lines 1.25 kB
import { IoCConfig } from './configManager'; /** * Parses a TypeScript config file (ioc.config.ts) and extracts the config object * from a defineConfig() call */ export declare class ConfigParser { /** * Parse ioc.config.ts file and extract config object */ static parseConfigFile(filePath: string): IoCConfig; /** * Find export default defineConfig({...}) */ private static findDefaultExport; /** * Find export const config = defineConfig({...}) */ private static findNamedExport; /** * Extract config object from defineConfig() call node * The node should already be the argument to defineConfig */ private static extractConfigFromNode; /** * Parse an object literal AST node into a JavaScript object */ private static parseObjectLiteral; /** * Extract value from an AST node (handles strings, numbers, booleans, arrays, objects) */ private static extractValue; /** * Extract string value from string literal node */ private static extractStringValue; /** * Parse an array literal AST node into a JavaScript array */ private static parseArrayLiteral; } //# sourceMappingURL=configParser.d.ts.map