Skip to content

readConfigFile

readConfigFile(file): Promise<{ config: TaskConfig; warnings: string[]; } | null>

Read, parse and validate one layer. null when the file does not exist — absence is normal and is not an error. A file that exists and is broken throws ConfigError.

ParameterType
filestring

Promise<{ config: TaskConfig; warnings: string[]; } | null>