(value: never)
| 69 | // if the passed in value is not of type `never`. Useful for exhaustiveness checking. |
| 70 | // The result of this function can be used in place of any value (as it will never return). |
| 71 | export const assertNever = (value: never): never => { |
| 72 | throw new Error(`Unhandled union member: ${JSON.stringify(value)}`); |
| 73 | }; |
| 74 | |
| 75 | export { |
| 76 | findClosest, |