Skip to content

readConfigSource

readConfigSource(options): Promise<ConfigSource | undefined>

Defined in: cli/datapad/src/read-config-source/read-config-source.ts:11

probeExtensions for a config that lives somewhere other than the local disk (a GitHub API, a git blob): probes <name>.config.<ext> in extension-priority order through options.fetch, returning the first file that exists, or undefined when none does. Pass the result to loadConfigFromContent to execute it exactly as a local file would be.

ReadConfigSourceOptions

Promise<ConfigSource | undefined>