Describe the bug
dprint-plugin-typescript version: 0.91.3
Input Code
function foo(arg: number, /** @deferred */ cb: () => void): void {}
interface Foo {
method<T>(
arg: { new(...args: any[]): T }, // This is a comment
arg2: (instance: T) => HTMLElement | undefined,
): Disposable;
method2<T>(
arg: { new(...args: any[]): T },
arg2: (instance: T) => HTMLElement | undefined, // This is a comment
): Disposable;
}
Expected Output
function foo(arg: number, /** @deferred */ cb: () => void): void {}
interface Foo {
method<T>(
arg: { new(...args: any[]): T }, // This is a comment
arg2: (instance: T) => HTMLElement | undefined,
): Disposable;
method2<T>(
arg: { new(...args: any[]): T },
arg2: (instance: T) => HTMLElement | undefined, // This is a comment
): Disposable;
}
Actual Output
function foo(arg: number /** @deferred */, cb: () => void): void {}
interface Foo {
method<T>(
arg: { new(...args: any[]): T } // This is a comment
,
arg2: (instance: T) => HTMLElement | undefined,
): Disposable;
method2<T>(
arg: { new(...args: any[]): T },
arg2: (instance: T) => HTMLElement | undefined // This is a comment
,
): Disposable;
}
Noticed this when updating DT; 30 some files had instances of this.
This is particularly scary because microsoft/TypeScript#58729 introduces a parameter JSDoc comment that shouldn't be moved around.
Describe the bug
dprint-plugin-typescript version: 0.91.3
Input Code
Expected Output
Actual Output
Noticed this when updating DT; 30 some files had instances of this.
This is particularly scary because microsoft/TypeScript#58729 introduces a parameter JSDoc comment that shouldn't be moved around.