mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-09 18:43:23 +08:00
6 lines
148 B
TypeScript
6 lines
148 B
TypeScript
export default class UnreachableException {
|
|
constructor(value: never) {
|
|
return new Error(`unreachable case: ${JSON.stringify(value)}`);
|
|
}
|
|
}
|