(
config: T & Partial<{caretaker: CaretakerConfig}>,
)
| 209 | |
| 210 | /** Retrieve and validate the config as `CaretakerConfig`. */ |
| 211 | export 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 |
no outgoing calls
no test coverage detected