oidc-client
oidc-client copied to clipboard
TypeScript support
Issue and Steps to Reproduce
Type errors when using hooks
Versions
Latest
Screenshots
Expected
Types automatically included
Actual
Any values returned
Additional Details
- Installed packages:
Hi @Lukejkw thank you very much for the issue. It is definitly something to type as it is possible to do.
It would be fairly easy to allow the user to specify their user type as a generic argument to the hook, otherwise to fallback to any
.
In strictly typed applications, not having a typed user entity makes the hooks quite difficult to use.
Would you accept a PRs to add in some better typing?
@guillaume-chervet is there any progress on this? What @Lukejkw is proposing sounds like a great solution?
Yes, i think i can do this quickly I am working on an internal refactoring and I am playing to add better typing
It would be awesome to have a pullrrquest from @Lukejkw