Hacker News new | ask | show | jobs
by gherkinnn 1362 days ago
You can use JSDoc (or a derivative thereof) in plain JS and get hints in the editor. Never used it myself though.

Anyway, ES modules have good browser support these days:

https://caniuse.com/es6-module-dynamic-import