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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
file | string |
Returns
Section titled “Returns”Promise<{ config: TaskConfig; warnings: string[]; } | null>