Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

314
Vistas
How do I build an "index" of my TypeScript API without it showing up on IntelliSense all the time?

I wrote an index.ts file which exports * from 'oneOfManyApiFiles' and also wraps all my API functions in a single object, so end-users can simply do

const api = (await require("myApi")).getApi()
api.callOneOfManyApiFunctions();

index.ts also enables TypeDoc to create a nice HTML page with information on all the exported types and functions.

The problem is that when I'm writing code (VS Code), IntelliSense always chooses to import symbols from index.ts (because it re-exports everything), rather than the actual file which originally exports the symbol. It seemed necessary for me to re-export everything to enable TypeDoc, but that also seems to be the root of my problems.

Is there a better way to go about organizing my project?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda