( strictErrors: boolean, strictAll: boolean, totalErrors: number, totalWarnings: number, )
| 3 | * from the browser entry alongside the rule engine. |
| 4 | */ |
| 5 | export function shouldBlockRender( |
| 6 | strictErrors: boolean, |
| 7 | strictAll: boolean, |
| 8 | totalErrors: number, |
| 9 | totalWarnings: number, |
| 10 | ): boolean { |
| 11 | return (strictErrors && totalErrors > 0) || (strictAll && (totalErrors > 0 || totalWarnings > 0)); |
| 12 | } |
no outgoing calls
no test coverage detected