Closed
Description
TypeScript Version: typescript@3.3.0-dev.20190118
Search Terms:
- quick fix
- code action
- lib.d.ts
Code
For the code:
async function a() {
const response = await fetch(`https://example.com`);
response.jsonX();
}
Trigger quickfixes on jsonX
Bug
declare
and add index
quick fixes returned. These modify the dom.d.ts
declarations of fetch.
We should never try to edit the lib.d.ts files
Playground Link:
Related Issues: