Skip to content

ConfigAdapter ​

The subset of RuntimeAdapter needed for config discovery.

Exported so custom hosts and tests can type the minimal adapter required by discoverConfig without depending on the full runtime adapter shape.

Signatures ​

ts
type ConfigAdapter = Pick<RuntimeAdapter, "readFile" | "cwd" | "configDir"> & Partial<Pick<RuntimeAdapter, "userConfigDirs" | "systemConfigDirs">>;

See Also ​

Released under the MIT License.