Im trying vscode to give a suggestion obtained from a type declared in file d.ts instead of deducing the type from es6 import.
index.js
// I include the type of MyClass in separate declaration file
///<reference path="types.d.ts">
//I import MyClass, but i want its type to be suggested from declaration file
import MyClass from "MyClass.js"
...
let instance = new MyClass(...)
vscode only suggest the type from d.ts file if i remove the import statement. Is it possible to force vscode to suggest the type in d.ts instead of es6 import class?
When i say vscode suggestion, i refer when you put the cursor over the MyClass() and vscode shows a tooltip with the class description