JSDocs @typedef {typeof import()} doesn't work with @ts-check pragma (throws "not a module") #25480
Labels
External
Relates to another program, environment, or user action which we cannot control.
TypeScript Version: 3.0.0-dev.201xxxxx and 2.9.2
Search Terms:
Code
Having
jest
and@types/jest
installed this snippet......seems to correctly use
ProjectConfig
. But when I add// @ts-check
in the first line I get an error.Expected behavior:
No error. Just more type checks. (E.g.
// @ts-check
I could setcollectCoverage: 'foo'
without an error.)Actual behavior:
/** @typedef {typeof import('jest')} */
:File '../node_ modules/@types/jest/index.d.ts' is not a module.
Related Issues:
// @ts-check
): [Salsa] Provide a JSDoc equivalent ofimport { ..} from "mod"
#14377The text was updated successfully, but these errors were encountered: