Ensures solutions are defined in configuration. Type assertion function that throws if no solutions exist.
Solutions array to validate
If no solutions are defined
const config = readConfigFile();validateSolutionsExist(config.solutions);// Now TypeScript knows solutions is defined and non-empty Copy
const config = readConfigFile();validateSolutionsExist(config.solutions);// Now TypeScript knows solutions is defined and non-empty
Ensures solutions are defined in configuration. Type assertion function that throws if no solutions exist.