<!-- 🚨 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.7.2 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** - typescript-in-jsdoc - jsdoc - 3.7 - declaration **Code** https://github.com/webpack/schema-utils/blob/72d2ea1b6025f0069b5bde49ea057df376c22057/src/validate.js **Expected behavior:** Expect correct declaration file created **Actual behavior:** https://github.com/webpack/schema-utils/blob/7b41f1ec6f0be3ecd7b023bdd3d6a5db052bbee3/dist/validate.d.ts Got strange export: ``` declare namespace validate { export { _default as ValidationError, _default as ValidateError }; } ``` If you will take a look on source code, it does not have `_default` export and `ValidateError` export either **Related Issues:** <!-- Did you find other bugs that looked similar? --> downstream issue: https://github.com/webpack/schema-utils/issues/75
TypeScript Version: 3.7.2
Search Terms:
Code
https://github.com/webpack/schema-utils/blob/72d2ea1b6025f0069b5bde49ea057df376c22057/src/validate.js
Expected behavior:
Expect correct declaration file created
Actual behavior:
https://github.com/webpack/schema-utils/blob/7b41f1ec6f0be3ecd7b023bdd3d6a5db052bbee3/dist/validate.d.ts
Got strange export:
If you will take a look on source code, it does not have
_defaultexport andValidateErrorexport eitherRelated Issues:
downstream issue: webpack/schema-utils#75