We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import export class declarations
This changed in PR #55472, commit 5ce34ca, version 5.3.0-dev.20230829.
5.3.0-dev.20230829
No response
index.js:
index.js
import { Something } from './something'; export { Something } from './something'; export const something = new Something();
something.ts (or something.js):
something.ts
something.js
export class Something {}
tsconfig.json:
tsconfig.json
{ "compilerOptions": { "checkJs": true, "declaration": true, "outDir": "dist" } }
The import of Something is missing in the emitted declarations file index.d.ts:
Something
index.d.ts
export { Something } from "./something"; export const something: Something;
The import of Something should be included in the emitted declarations file index.d.ts:
export { Something } from "./something"; export const something: Something; import { Something } from './something';
The problem does not occur if
index.ts
export const something
/** @type {Something} */
The text was updated successfully, but these errors were encountered:
No branches or pull requests
π Search Terms
import export class declarations
π Version & Regression Information
This changed in PR #55472, commit 5ce34ca, version
5.3.0-dev.20230829
.β― Playground Link
No response
π» Code
index.js
:something.ts
(orsomething.js
):tsconfig.json
:π Actual behavior
The import of
Something
is missing in the emitted declarations fileindex.d.ts
:π Expected behavior
The import of
Something
should be included in the emitted declarations fileindex.d.ts
:Additional information about the issue
The problem does not occur if
index.ts
instead ofindex.js
export const something
includes an explicit JSDoc type annotation (/** @type {Something} */
)The text was updated successfully, but these errors were encountered: