developit / developit/microbundle

Possible issue with missing type declaration files for ESM exports

Open
#1,085 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.1k
Forks
358
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.