anki/ts/lib/typing.ts

4 lines
97 B
TypeScript
Raw Normal View History

export function assertUnreachable(x: never): never {
throw new Error(`unreachable: ${x}`);
}