Re:TypeScript please give us types
by Nullabillity on Friday July 07, 2023 @07:29PM
(#36639631)
But tst-reflect seems to work by effectively building their own forked tsc compiler.
[ Parent
| on HN ]
No, they have a plugin into the typescript compiler which uses their API. tsc already exposes all of the info they need.
Re:TypeScript please give us types
by Dylan16807 on Friday July 07, 2023 @09:10PM
(#36640339)
Okay so it's not a forked compiler but it's adding a feature to the compiler.
At which point it makes a lot of sense to ask why that feature shouldn't be merged.
Re:TypeScript please give us types
by auggierose on Saturday July 08, 2023 @04:32AM
(#36642523)
Because of feature creep. I don't need that feature. Don't merge things that can be kept separate. It is called modularity.
Re:TypeScript please give us types
by Nullabillity on Saturday July 08, 2023 @11:44AM
(#36645473)
According to their (tst-reflect's) README, tsc doesn't support plugins. The plugin support comes from a fork called ttsc.