Re:TypeScript 3.6
by Ididntdothis on Wednesday August 28, 2019 @06:11PM
(#20824575)
I am also starting to embrace a mix. “Any” in TS or “dynamic” in C# can save a lot of code when parsing JSON but then I usually quickly try to move over into the typed world.
[ Parent
| on HN ]
`unknown` is also a really convenient type too: https://www.typescriptlang.org/docs/handbook/release-notes/t...
I think of it as "I don't care what the type is, but I also shouldn't be able to do anything with it"