Closed
Description
TypeScript Version: 4.0.0-dev.20200720
Search Terms:
Code
For the typescript
/** @deprecated */
function bar(x: number, y: number){}
bar(1, 2);
export interface Foo {
/** @deprecated */
bar(x: number, y: number): void;
}
({ } as Foo).bar(1, 2);
Expected behavior:
I'd expect that just the function and method names (bar
) are marked as deprecated
Actual behavior:
The entire call expression is marked as deprecated
For complex function/method calls, the current behavior feels a little too agressive :