(check: any, message: string, thing?: any)
| 102 | } |
| 103 | |
| 104 | export function invariant(check: any, message: string, thing?: any) { |
| 105 | if (!check) { |
| 106 | throw new Error(`Invariant failed: ${ message }${thing ? ` in '${thing}'` : ''}`); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | export function deprecate(fail: any, message: string, alterative?: string) { |
| 111 | if (fail) { |
no outgoing calls
no test coverage detected
searching dependent graphs…