mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
6 lines
226 B
TypeScript
6 lines
226 B
TypeScript
// `missingCaseError` is useful for compile-time checking that all `case`s in
|
|
// a `switch` statement have been handled, e.g.
|
|
//
|
|
|
|
export const missingCaseError = (x: never): TypeError => new TypeError(`Unhandled case: ${x}`);
|