Object mapping string to boolean or Object gets typed instead to any with new JS->declaration support · Issue #34914 · microsoft/TypeScript · GitHub
![typescript - Type 'string | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never' - Stack Overflow typescript - Type 'string | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never' - Stack Overflow](https://i.stack.imgur.com/P2hZY.png)
typescript - Type 'string | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never' - Stack Overflow
Anurag Hazra ⚛ on Twitter: "<--- any type! ---> TypeScript provides a special type called `any`. It is an escape hatch which you can use if for some reason you are getting
![javascript - how to handle `Type | boolean` return values in typescript and error checking / tests - Stack Overflow javascript - how to handle `Type | boolean` return values in typescript and error checking / tests - Stack Overflow](https://i.stack.imgur.com/JmWaE.png)