Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Fix TypeScript import for Node16 module resolution mode #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

msujew
Copy link

@msujew msujew commented Jan 29, 2024

Closes #5

For "moduleResolution": "Node16" (i.e. native ESM imports), TypeScript requires a types field in the exports object. This change adds the required field.

Additionally, it exports a few more types, which are very useful in case you actually want to propagate the expected argument types throughout your own adopter code. If unwanted, I can drop the commit again though.

Also fixes the type error related to the fetch API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not lib
1 participant