-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add useRoute()
React hook
#473
Conversation
Is there a way you can use this with typescript? |
@felipeva no idea 😅 if you can import JavaScript modules into TypeScript then I don't see why not. |
See here https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html Since this package uses JSDoc it would be possible to generate definition files for the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very simple solution :)
Is there something similar for Vue? |
eedef9d
to
4515a12
Compare
Adds a
useRoute()
React hook. If theZiggy
config object is available globally, usage is as simple as:Closes #327.