You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/util/missingCaseError.ts

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}`);