* Utility function to ensure all variants of an enum are handled.
(never: never, computeMessage: (arg: any) => string)
| 218 | * Utility function to ensure all variants of an enum are handled. |
| 219 | */ |
| 220 | function invariant(never: never, computeMessage: (arg: any) => string): never { |
| 221 | throw new Error(`Invariant: ${computeMessage(never)}`) |
| 222 | } |