![Why do I got "Type 'string | number' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. " it's make me misleading : r/typescript Why do I got "Type 'string | number' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. " it's make me misleading : r/typescript](https://preview.redd.it/qkatakpqy7z51.png?width=832&format=png&auto=webp&s=ae59555d1985b09c3405790e4bfd4c0891db1772)
Why do I got "Type 'string | number' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. " it's make me misleading : r/typescript
![Understanding the basic “Built-in Data Types” provided by TypeScript | by Uday Hiwarale | JsPoint | Medium Understanding the basic “Built-in Data Types” provided by TypeScript | by Uday Hiwarale | JsPoint | Medium](https://miro.medium.com/max/1400/1*rh3u9UQA1VTpmB60n7OmHQ.png)
Understanding the basic “Built-in Data Types” provided by TypeScript | by Uday Hiwarale | JsPoint | Medium
![typescript - Javascript decimal precision lose after converting from string to Number or ParseFloat - Stack Overflow typescript - Javascript decimal precision lose after converting from string to Number or ParseFloat - Stack Overflow](https://i.stack.imgur.com/46ezO.jpg)