repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
docs-shared
/
lib
/
AssertUnreachable.ts
blob
599b189a221b8f019a223a48a242d446aeb33a09
1
export function assertUnreachableAndThrow(uncheckedCase: never): never {
2
throw Error('Unchecked case ' + uncheckedCase)
3
}
4
5
export function assertUnreachableAndLog(uncheckedCase: never): void {
6
console.error('Unchecked case', uncheckedCase)
7
}