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
declaration syntax invalid comment docstring reuse
This is the behavior in every version I tried
https://www.typescriptlang.org/dev/bug-workbench/?target=7&composite=true&ts=5.8.1-rc#code/PTAEAEGMHsFsAdoGcCWAXApgLlGgTgK4YBQIES+KkaO+RpY4AJhpADYCGeHaK0AdrUIky4JAAtoAdwCisdA3KTZ8tJiYAxFG2ygOAOib60SYovAAzbRn4dYugyeIoE0PGlABvUNABGAK1YPAF9QCzw4UAAifWA-fyiAbjMMAA9Ed1AYfgpQAH1QAF4fAKDkhhBKqtIAKhriUBrQcQJxBprgcysdW3sceMNjUzSMjxZ2LgwsgVz4oJwXUYAKGOAUJiiASn0ASSYAHk8G0BOLaGgF13cV2PWo0G29w+CAPmTX8tFumztddcGnCM3B40ABPeBTJ4AFReRVAUPKQA
// @composite: true // @strict: true // @declaration: true // @showEmit // @showEmittedFile: a.d.ts // @filename: a.ts import { object } from "./obj"; export const _ = object; /////////// /** * huh */ // @filename: obj.d.ts export declare const object: import("./id").Id<{ foo: import("./id" ).Id<{}>; }>; // @filename: id.d.ts export type Id<T> = T;
a.d.ts is emitted as
a.d.ts
export declare const _: { foo: import( /** * huh */ "./id" /** * huh */).Id<{}>; }; /** * huh */
a.d.ts emitted as
export declare const _: { foo: import("./id").Id<{}>; }; /** * huh */
This seems to be a continuation of #58807, which #58810 did not fully resolve. cc @Andarist @dragomirtitian @jakebailey @weswigham
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🔎 Search Terms
declaration syntax invalid comment docstring reuse
🕗 Version & Regression Information
This is the behavior in every version I tried
⏯ Playground Link
https://www.typescriptlang.org/dev/bug-workbench/?target=7&composite=true&ts=5.8.1-rc#code/PTAEAEGMHsFsAdoGcCWAXApgLlGgTgK4YBQIES+KkaO+RpY4AJhpADYCGeHaK0AdrUIky4JAAtoAdwCisdA3KTZ8tJiYAxFG2ygOAOib60SYovAAzbRn4dYugyeIoE0PGlABvUNABGAK1YPAF9QCzw4UAAifWA-fyiAbjMMAA9Ed1AYfgpQAH1QAF4fAKDkhhBKqtIAKhriUBrQcQJxBprgcysdW3sceMNjUzSMjxZ2LgwsgVz4oJwXUYAKGOAUJiiASn0ASSYAHk8G0BOLaGgF13cV2PWo0G29w+CAPmTX8tFumztddcGnCM3B40ABPeBTJ4AFReRVAUPKQA
💻 Code
🙁 Actual behavior
a.d.ts
is emitted as🙂 Expected behavior
a.d.ts
emitted asAdditional information about the issue
This seems to be a continuation of #58807, which #58810 did not fully resolve. cc
@Andarist @dragomirtitian @jakebailey @weswigham
The text was updated successfully, but these errors were encountered: