首页 > TAG信息列表 > UnreachableError
[Typescript] Exhaustive conditionals - UnreachableError helper class
class UnreachableError extends Error { constructor(_nvr: never, message: string) { super(message) } } class Car { drive() { console.log("vroom") } } class Truck { tow() { console.log("dragging something") } } c