Should be possible to easily do this by leveraging existing JSDoc types and an editor like VS Code. - https://stackoverflow.com/questions/53157373/how-to-enable-ts-check-in-es6 - https://www.stefanjudis.com/today-i-learned/vs-code-supports-jsdoc-powered-type-checking/