- yeah our project uses typescript
- look inside
- any
You must log in or register to comment.
In my defense, the backend contracts change so often in early development the any just made sense at first…
…and then the delivery date was moved up and we all just had to ship it…
…and then half of us got laid off so now there are no resources to go back and fix it…
…rinse, wash, repeat
Use the unknown type so at least someone might have enough brain cells to validate before casting because squiggles
as unknown as any
JavaScript is so ass, typescript is just putting ketchup on a rotten banana. Better just to choke it down quickly if you have to eat it, IMO.