Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
es6 import and reference d.ts in same file

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!