<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with the latest published version. It may have already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly --> **TypeScript Version:** 3.8.0-dev.20200207 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** JsDoc module null alias empty type declaration **Code** Minimal js file: ```javascript /** * @module A */ class A {} /** * Target element * @type {module:A} */ export let el = null; export default A; ``` Minimal tsconfig: ```json { "compilerOptions": { "emitDeclarationOnly": true, "allowJs": true, "declaration": true, "outFile": "./x.d.ts" } } ``` **Expected behavior:** ```ts declare module "b" { /** * Target element * @type {module:A} */ export let el: A; // or any export default A; /** * @module A */ class A { } } ``` **Actual behavior:** ```ts declare module "b" { /** * Target element * @type {module:A} */ export let el: ; export default A; /** * @module A */ class A { } } ``` **Playground Link:** [Provided](http://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=13&pc=18&useJavaScript=true#code/PQKhCgAIUgBBbA9gEwK4BsCmkCCUTDgDG6AhgM7m6QDeAvuI6BNJACqkBOA5pgC6RMWeJgB2ffHD4BPAA7YaSNFgBcOBtEKYAHrMScBWAUMgBeSKIzoA3Ix16DkZJgBmpDAJzWgA) **Related Issues:** <!-- Did you find other bugs that looked similar? -->