Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

feat: Add AnyAuthClient type#1843

Merged
leahecole merged 3 commits intomainfrom
type-authclients
Aug 14, 2024
Merged

feat: Add AnyAuthClient type#1843
leahecole merged 3 commits intomainfrom
type-authclients

Conversation

@danielbankhead
Copy link
Contributor

🦕

@danielbankhead danielbankhead requested a review from a team as a code owner August 6, 2024 19:34
@danielbankhead danielbankhead requested a review from a team August 6, 2024 19:34
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Aug 6, 2024
src/index.ts Outdated
*
* @experimental
*/
export type AuthClients = InstanceType<
Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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<
Copy link
Contributor

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

@danielbankhead danielbankhead changed the title feat: Add AuthClients type feat: Add AnyAuthClient type Aug 7, 2024
@leahecole leahecole merged commit 3ae120d into main Aug 14, 2024
@leahecole leahecole deleted the type-authclients branch August 14, 2024 13:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants