Skip to content

collectOptionsFromConfig

collectOptionsFromConfig(config): Pick<CollectOptions, "exclude" | "allowExec" | "discovery" | "excludePaths">

The CollectOptions slice this configuration owns.

Only keys the config actually sets are present, so a caller can spread its own flags AFTER this without an unset flag having to be stripped first:

collect(root, { …collectOptionsFromConfig(cfg), …flags })

ParameterType
configTaskConfig

Pick<CollectOptions, "exclude" | "allowExec" | "discovery" | "excludePaths">