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

Patch package.json to fix TS type exports. #150

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

AaronJY
Copy link
Contributor

@AaronJY AaronJY commented Oct 13, 2023

I was running into this error (#149) reported by @minhquan1313, which relates to TS being unable to find the declaration types for the library.

This PR fixes this by specifically pointing to the types file "./src/index.d.ts"

Tested by altering the package.json in node_modules with my proposed fix, and the types are pulled in correctly now :)

@AaronJY AaronJY mentioned this pull request Oct 13, 2023
@yaodingyd yaodingyd merged commit 8e6a090 into yaodingyd:master Oct 13, 2023
1 check passed
@yaodingyd
Copy link
Owner

thanks!

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.

2 participants