We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
quickfix missing properties generic parameter
The quickfix was added in #44576 (cc @a-tarasyuk) but it doesn't appear to handle generic parameters.
interface Foo<T> { foo(): T; } const x: Foo<string> = {};
The following is generated by the quickfix:
interface Foo<T> { foo(): T; } const x: Foo<string> = { foo: function (): T { // <-- this is wrong throw new Error("Function not implemented."); } };
I would expect to see string instead of T:
string
T
interface Foo<T> { foo(): T; } const x: Foo<string> = { foo: function (): string { throw new Error("Function not implemented."); } };
Bug Report
馃攷 Search Terms
quickfix missing properties generic parameter
馃晽 Version & Regression Information
The quickfix was added in #44576 (cc @a-tarasyuk) but it doesn't appear to handle generic parameters.
馃捇 Code
馃檨 Actual behavior
The following is generated by the quickfix:
馃檪 Expected behavior
I would expect to see
stringinstead ofT: