4 lines
97 B
TypeScript
4 lines
97 B
TypeScript
|
export function assertUnreachable(x: never): never {
|
||
|
throw new Error(`unreachable: ${x}`);
|
||
|
}
|