developit / developit/microbundle

Possible issue with missing type declaration files for ESM exports

Abierto
#1,085 15 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
8.1k
Forks
358
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi, this is possibly user error, but a recent routine release of my lib [react-flip-toolkit](https://github.com/aholachek/react-flip-toolkit) broke type declarations-- a user filed an [issue here](https://github.com/aholachek/react-flip-toolkit/issues/224) and when I view the analysis [on this page](https://arethetypeswrong.github.io/?p=react-flip-toolkit%407.2.0) I see that types are not found.

After digging around for a bit, it seems possible based on my reading of [this explanation](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/UntypedResolution.md) that we need to package an `index.d.mts` alongside the `index.d.ts` automatically generated by microbundle.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reproducing the missing-type result for react-flip-toolkit 7.2.0 with the arethetypeswrong analysis and read the linked UntypedResolution explanation. Inspect how microbundle generates index.d.ts for ESM exports; done means the published package provides declarations that the analysis resolves correctly for that export path.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, typescript
Área
build-system
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.