(source: json.JsonValue | undefined)
| 387 | |
| 388 | export 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 |
no test coverage detected