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

index.d.ts out of sync with index.js #297

Open
smonroe4242 opened this issue Apr 26, 2024 · 0 comments · May be fixed by #298
Open

index.d.ts out of sync with index.js #297

smonroe4242 opened this issue Apr 26, 2024 · 0 comments · May be fixed by #298

Comments

@smonroe4242
Copy link

Typescript is telling me there are declared methods in @uidotdev/usehooks @2.4.1 that are not available in implementation.

Specifically, index.d.ts declares useSpeech, which was removed from index.js in ea634b3 between 2.1.1 and 2.2.0, implying that all versions > 2.2.0 suffer from this problem.

useSpeech was the only thing I tried to use from typescript autocomplete that failed at build time, but I have not checked the rest of the declarations to see if other things are out of sync.

smonroe4242 added a commit to smonroe4242/usehooks that referenced this issue Apr 26, 2024
Removes obsolete type definitions around useSpeech hook, which was removed in 2.2.0.

Fixes uidotdev#297
@smonroe4242 smonroe4242 linked a pull request Apr 26, 2024 that will close this issue
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 a pull request may close this issue.

1 participant