-
-
Notifications
You must be signed in to change notification settings - Fork 105
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 Typings are out of date #101
Comments
I'm trying to update the typing for
We have to do this instead:
This is because a CommonJS module exports the Router class instead of a Is there a way for |
Maybe |
@dangmai You can use the allowSyntheticDefaultImports compiler option in your tsconfig {
"compilerOptions": {
"allowSyntheticDefaultImports": true
... |
Flow types: flow-typed/flow-typed#1596 |
Any work around ? the
|
@gytisgreitai can you try |
no, same error. Same goes for I'm using react-creat-app-ts so maybe there is something in between. For now I've simply resorted to unpkg since this is a small intranet project. |
Is it possible for you guys to update the existing typings for Typescript?
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e5ed4fc91679670a415f2534005ef8d67ec2189e/types/universal-router/index.d.ts
There were breaking API changes in v3 so it would be nice to have the typings reflect those.
Thanks!
The text was updated successfully, but these errors were encountered: