This is a really simple Node.js script which uses the Typescript compiler API to find all Typescript files in the current directory, parse their imported symbols, and list those imports which resolve to undefined types.
I wrote this because Typescript modules often are missing types for transitive imports: Package A sometimes re-exports types from Package B that are missing. This script will find them, and allow you to do fix it if you like!
This script is not yet published to npm, so it must be run manually for the time being.
You can run it in a given directory, and it will recursively find all js/ts/tsx files and analyze their imports:
node ./path/to/check-missing-import-types/cli.jsOr pass in a specific file name:
node ./path/to/check-missing-import-types/cli.js some-file.ts