-
Notifications
You must be signed in to change notification settings - Fork 156
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
Typescript definition missing important properties or has properties that should be optional. #133
Comments
Yikes! Are you able to do a quick PR to fix those? |
not right now :( I can get it at the weekend but atm I am hitting a deadline wall :/ |
easiest solution would be to remove the typings property from |
patched in 2.4.1. |
Nice! Will try and get that cleaned up at the end of the week. |
Any updates on this? I thought I was losing my mind when my project couldn't find the definition file until I tracked it down to the "x-typings" and then found this issue through the git blame commit hash to disable the typings temporarily. Makes sense now, haha. |
It would be nice to have the type definitions back. I can try and add them. |
This addresses the issues in preactjs#133
it appears the issues in preactjs#133 were addressed but the typings file yet restored
Fixes errors present in strict mode Adds getCurrentUrl and route override definitions Adds a RoutableProps interface consumers can extend to implement a routable component Fixes the types of RouterProps, Route, Link (closes preactjs#133) Re-enables the typings file in package.json
* Fix typescript definitions Fixes errors present in strict mode Adds getCurrentUrl and route override definitions Adds a RoutableProps interface consumers can extend to implement a routable component Fixes the types of RouterProps, Route, Link (closes #133) Re-enables the typings file in package.json * add generic over Route, RouteProps
This addresses the issues in preactjs/preact-router#133
Causes huge walls of (invalid) errors in our codebase after upgrading to 2.4.0. I've taken to rm'ing
index.d.ts
for now :)The issues are:
Router
has nohistory
prop.RouterArgs.matches
should be optional.RouterArgs.url
should be optional.RouterArgs.path
should be present.I think that's all, but don't have time atm to try to fix or dig deeper so there may be others.
The text was updated successfully, but these errors were encountered: