-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Update types #237
Update types #237
Conversation
Sorry for not opening an issue, i saw this while coding today and just started doing it, should i open an issue or only the pr is fine? |
types/index.test-d.ts
Outdated
@@ -43,10 +43,6 @@ const OAuth2Options: FastifyOAuth2Options = { | |||
credentials: credentials, | |||
callbackUri: 'http://localhost/testOauth/callback', | |||
callbackUriParams: {}, | |||
generateStateFunction: () => { |
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.
why this has been removed?
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.
it wasn't being used in any other place. Since it needs to receive a fastifyRequest, it essentially wasn't doing anything, but typescript was yelling, so I removed it!
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.
You still need the test for this two function.
Please update to the valid syntax.
is this good to go? |
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.
Changes LGTM
@climba03003 are you ok the current changes? |
@Eomm ? |
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.
It still missing the assertion of the updated types.
Sorry for disappearing here, got a bit out of time. Will be finishing this weekend! |
Any updates? |
Signed-off-by: Aras Abbasi <aras.abbasi@googlemail.com>
Delayed to much here, might peak up on a new pr, closing this. |
Refactoring the types for a better autocomplete of functions and plugin options. The reason for the change is because of this behavior
Checklist
npm run test
andnpm run benchmark
and the Code of conduct