Spaces:
Runtime error
Runtime error
File size: 215 Bytes
2485dd8 |
1 2 3 4 5 6 7 |
// Useful for ensuring switch statements are exhaustive
export default function exhaustivenessCheck(p: never): never {
throw new Error(
`This should never happen. Value received: ${JSON.stringify(p)}`,
);
}
|