(c: unknown, message?: string, ...extra_info: any[])
| 110 | // Using `unknown` instead of generic implementation due to: |
| 111 | // https://github.com/microsoft/TypeScript/issues/60130 |
| 112 | export function assert(c: unknown, message?: string, ...extra_info: any[]): asserts c { |
| 113 | if (!c) { |
| 114 | fail('Assertion failed', message, extra_info); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | export function unwrap<T>(x: T | undefined | null, message?: string, ...extra_info: any[]): T { |
| 119 | if (x === undefined || x === null) { |
no test coverage detected