(actual: T, msg: string)
| 95 | } |
| 96 | |
| 97 | export function assertNotDefined<T>(actual: T, msg: string) { |
| 98 | if (actual != null) { |
| 99 | throwError(msg, actual, null, '=='); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | export function assertDefined<T>(actual: T | null | undefined, msg: string): asserts actual is T { |
| 104 | if (actual == null) { |
no test coverage detected
searching dependent graphs…