Closed
Description
π Search Terms
declaration syntax invalid comment docstring reuse
π Version & Regression Information
This is the behavior in every version I tried
β― Playground Link
π» Code
// @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;
π Actual behavior
a.d.ts
is emitted as
export declare const _: {
foo: import(
/**
* huh
*/ "./id" /**
* huh
*/).Id<{}>;
};
/**
* huh
*/
π Expected behavior
a.d.ts
emitted as
export declare const _: {
foo: import("./id").Id<{}>;
};
/**
* huh
*/
Additional information about the issue
This seems to be a continuation of #58807, which #58810 did not fully resolve. cc
@Andarist @dragomirtitian @jakebailey @weswigham