Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / docs-shared / lib / AssertUnreachable.ts
blob599b189a221b8f019a223a48a242d446aeb33a09
1 export function assertUnreachableAndThrow(uncheckedCase: never): never {
2   throw Error('Unchecked case ' + uncheckedCase)
5 export function assertUnreachableAndLog(uncheckedCase: never): void {
6   console.error('Unchecked case', uncheckedCase)