$ npm install querystring
[Trace - 10:48:04 AM] Event received: suggestionDiag (0).
Data: {
"file": "/Users/matb/projects/san/src/components/index.ts",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 27
},
"end": {
"line": 1,
"offset": 40
},
"text": "Could not find a declaration file for module 'querystring'. '/Users/matb/projects/san/node_modules/querystring/index.js' implicitly has an 'any' type.\n Try `npm install @types/querystring` if it exists or add a new declaration (.d.ts) file containing `declare module 'querystring';`",
"code": 7016,
"category": "suggestion"
},
{
"start": {
"line": 1,
"offset": 27
},
"end": {
"line": 1,
"offset": 40
},
"text": "Could not find a declaration file for module 'querystring'. '/Users/matb/projects/san/node_modules/querystring/index.js' implicitly has an 'any' type.\n Try `npm install @types/querystring` if it exists or add a new declaration (.d.ts) file containing `declare module 'querystring';`",
"code": 7016,
"category": "suggestion"
}
]
}
TypeScript Version: 3.3.0-dev.20181128
Search Terms:
Code
In a node project:
With a ts file:
Bug:
Duplicate suggestion diagnostics are returned: