Initial Commit
This commit is contained in:
3
lang/assertUnreachable.ts
Normal file
3
lang/assertUnreachable.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function assertUnreachable(value: never): never {
|
||||
throw new Error(`Unreachable code: ${value}`);
|
||||
}
|
||||
Reference in New Issue
Block a user