DEV Community

Discussion on: Is typescript "static typing" features going to be imported in the js language overtime?

Collapse
 
rhymes profile image
rhymes

Any JavaScript is valid TypeScript, correct?

TypeScript has optional static typing and interfaces, it also has JavaScript as a compilation target.

JavaScript is a dinamically and weakly typed language and I don't see that changing anytime.

So, what's left is interfaces? But interfaces in TypeScript require types.

I don't think there will be much in terms of "imports" from TS to JS