UNPKG

@adonisjs/config

Version:

Config management for AdonisJS framework

22 lines (21 loc) 505 B
/// <reference types="node" resolution-mode="require"/> /** * The config loader imports all the script files from a given directory * and returns their exports as a tree of objects. * * Following file extensions are considered script files. * * - .js * - .ts (without .d.ts) * - .json * - .cjs * - .mjs */ export declare class ConfigLoader { #private; constructor(appRoot: string | URL); /** * Load config files as a tree from a given path. */ load(): Promise<any>; }