Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update types to work with ESM + TS #291

Merged
merged 1 commit into from
Jun 24, 2024
Merged

fix: update types to work with ESM + TS #291

merged 1 commit into from
Jun 24, 2024

Conversation

jmjf
Copy link
Contributor

@jmjf jmjf commented Jun 22, 2024

Fixes 242

Adds a namespace and declares buildGetJwks so ESM + TS works.

I'm not sure how to write tests for this issue because it requires changing package.json to use ESM. See https://github.com/jmjf/get-jwks-demo README for how to demonstrate the issue and how to prove the fix works. LMK if you know of a better testing approach.

I chose to declare all types, then export them in the namespace, as described in the README. Alternatively, I could declare and export the types in the namespace and change declare function buildGetJwks... as described in the README if you prefer.

@simoneb simoneb merged commit c49610d into nearform:main Jun 24, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package not working with typescipt?
2 participants