DEV Community

Discussion on: Get types by Writing Hybrid JavaScript

Collapse
 
maciekgrzybek profile image
Maciek Grzybek

Interesting approach, although it feels a little bit too hacky. But whatever works for you :)
P.S. Will VS Code complain when you pass wrong type of argument?

Collapse
 
rafaelmc profile image
rafalou38

Will VS Code complain when you pass wrong type of argument?

Not at all it is just a comment as opposed to typescript if the syntax or the type is wrong it will just be ignored and fallback to the type any