Ensures a checker is defined in the configuration. Type assertion function that throws if checker is undefined.
Checker configuration to validate
If no checker is defined in configuration
const config = readConfigFile();ensureCheckerExists(config.checker);// Now TypeScript knows checker is defined Copy
const config = readConfigFile();ensureCheckerExists(config.checker);// Now TypeScript knows checker is defined
Ensures a checker is defined in the configuration. Type assertion function that throws if checker is undefined.