Function directoryLoader

  • Directory loader loads configuration in a specific folder. The basename of file will be used as configuration key, for the directory below:

    .
    └─config
    ├── app.toml
    └── db.toml

    The parsed config will be { app: "config in app.toml", db: "config in db.toml" }

    Parameters

    Returns (() => Record<string, any>)

      • (): Record<string, any>
      • Returns Record<string, any>

Generated using TypeDoc