-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Feature: allow arrow-function & class-methods as adapter factory #1197
Feature: allow arrow-function & class-methods as adapter factory #1197
Conversation
like |
2c474d3
to
b863eb3
Compare
b863eb3
to
4ac29be
Compare
@panva Ready for review |
@talentumtuum the code may pass initialization but static class function or arrow function factory functions don't actually work, i've added tests for such. |
@panva I'll take care of this problem in my spare time, I think I'll be back with a solution in 1-3 days, maybe today. Okay? |
Thank you, for sure, come back to the problem any time. FWIW it might be as simple as updating Edit: and |
@panva Thank you for your quick assistance |
Thank you for the PR! |
Hi!
Now when implementing the "AdapterFactory" type from the package https://www.npmjs.com/package/@types/oidc-provider
a situation can happen where the types are correct, but at runtime we get an error.
I found a mention of this problem here #776 (comment)
With this PR I add the ability to use arrow-functions and class methods as a factory and at the same time fix the non-obvious behavior when writing code in typescript