-
Notifications
You must be signed in to change notification settings - Fork 379
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
feat: Add AnyAuthClient
type
#1843
Conversation
src/index.ts
Outdated
* | ||
* @experimental | ||
*/ | ||
export type AuthClients = InstanceType< |
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.
Not too sure about the name; AuthClients
could imply AuthClient[]
. Would something like AnyAuthClient
be clearer?
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.
I see what you mean about the naming. AnyAuthClient
works for me, or UnionAuthClients
? this is a tough naming situation.
My other feedback is that there is a lot going on in the InstanceType
and the Extract
- is it possible to split this up into a couple of lines and to comment what's going on so it's easier to read? It's hard to parse just by looking at 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.
Thanks, updated
src/index.ts
Outdated
* | ||
* @experimental | ||
*/ | ||
export type AuthClients = InstanceType< |
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.
I see what you mean about the naming. AnyAuthClient
works for me, or UnionAuthClients
? this is a tough naming situation.
My other feedback is that there is a lot going on in the InstanceType
and the Extract
- is it possible to split this up into a couple of lines and to comment what's going on so it's easier to read? It's hard to parse just by looking at it
AuthClients
typeAnyAuthClient
type
🦕