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

151
Vistas
Should I include a plain JS interface for Typescript-based NPM package?

I'm creating an open source library intended for distribution as an NPM package. I'll write it in Typescript. I'm aware that not all potential users of my library will use Typescript. So I'd like to be friendly to the plain JS coders out there. And people use different build environments, which could add other wrinkles I can't predict right now.

Should I include an API facade that exports plain JS wrappers to my Typescript functions? If that seems wrong, maybe you could explain what a "friendly" approach would be for varied users of my package. Maybe nothing is needed at all.

At a technical level, I can work through individual import/export scenarios. This is more a question about what works well in the field with developer configurations I might not be able to predict.

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