Skip to content

Strange declarations created within typescript-in-jsdoc #34994

Closed
@vankop

Description

@vankop

TypeScript Version: 3.7.2

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:

downstream issue: webpack/schema-utils#75

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions