TypeScript

1115 readers
3 users here now

founded 3 years ago
MODERATORS
101
 
 

I have googled this and even got to the second page, and there does not seem to be any kind of consensus.

As far as I can tell, it's a bad idea because it creates code you don't see and accepts inputs that you wouldn't want. And yet, many people seem to like them more than, say, const unions due to being easier to refactor in bulk.

So what gives? Is this a case of IT people having very strong opinions on stuff that doesn't matter? Or is there a technical reason for or against it?

102
103
104
105
106
 
 

Click bait title, but this post goes into depth about using tsconfig.json correctly and across different layers of your project.

107
108