(condition: any, message?: string, cause?: any)
| 10 | } |
| 11 | |
| 12 | export function assert(condition: any, message?: string, cause?: any): asserts condition { |
| 13 | if (!condition) { |
| 14 | throw Error(message ?? 'Assertion failed', {cause}) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | export function msg<T, K extends keyof T>(kind: K, data: T[K]): UnionMember<T, K> { |
| 19 | return {kind, data} |
no outgoing calls
no test coverage detected
searching dependent graphs…