MCPcopy Create free account
hub / github.com/angular/dev-infra / assertValidCaretakerConfig

Function assertValidCaretakerConfig

ng-dev/utils/config.ts:211–217  ·  view source on GitHub ↗
(
  config: T & Partial<{caretaker: CaretakerConfig}>,
)

Source from the content-addressed store, hash-verified

209
210/** Retrieve and validate the config as `CaretakerConfig`. */
211export function assertValidCaretakerConfig<T extends NgDevConfig>(
212 config: T & Partial<{caretaker: CaretakerConfig}>,
213): asserts config is T & {caretaker: CaretakerConfig} {
214 if (config.caretaker === undefined) {
215 throw new ConfigValidationError(`No configuration defined for "caretaker"`);
216 }
217}
218
219/**
220 * Resolves and reads the specified configuration file, optionally returning an empty object

Callers 3

checkValidityFunction · 0.90
checkServiceStatusesFunction · 0.85
assertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected