MCPcopy Index your code
hub / github.com/angular/angular-cli / getWarning

Function getWarning

packages/angular/cli/src/utilities/config.ts:389–399  ·  view source on GitHub ↗
(source: json.JsonValue | undefined)

Source from the content-addressed store, hash-verified

387
388export async function isWarningEnabled(warning: string): Promise<boolean> {
389 const getWarning = (source: json.JsonValue | undefined): boolean | undefined => {
390 if (isJsonObject(source)) {
391 const warnings = source['warnings'];
392 if (isJsonObject(warnings)) {
393 const value = warnings[warning];
394 if (typeof value == 'boolean') {
395 return value;
396 }
397 }
398 }
399 };
400
401 let result: boolean | undefined;
402

Callers 1

isWarningEnabledFunction · 0.85

Calls 1

isJsonObjectFunction · 0.70

Tested by

no test coverage detected