Re:TypeScript is now officially 10 years old
by kuramitropolis on Sunday October 09, 2022 @09:05PM
(#33146802)
I'm not even talking about the module support. (It just seems to have the default support of TypeScript.)
Yes, it imports the module. No, it doesn't do even basic type inference (knowing that Foo is a class and consequently allowing it to be used as a type name) - which it would, if it was a superset of JS. Instead it seems to import everything as "any", which is... a start, I guess?
Try this: