( condition: boolean, message: string, Err: any = Error )
| 5 | import {DEFAULT_INTL_CONFIG as CORE_DEFAULT_INTL_CONFIG} from '@formatjs/intl' |
| 6 | |
| 7 | export function invariant( |
| 8 | condition: boolean, |
| 9 | message: string, |
| 10 | Err: any = Error |
| 11 | ): asserts condition { |
| 12 | if (!condition) { |
| 13 | throw new Err(message) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | export function invariantIntlContext(intl?: any): asserts intl { |
| 18 | invariant( |
no outgoing calls
no test coverage detected