-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chore: Small cleanup to internal core utils #13140
Conversation
type StrictUnionHelper<T, TAll> = T extends any | ||
? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> | ||
: never; | ||
|
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.
Nit: Should we add a comment to explain util function here?
@@ -4,3 +4,4 @@ | |||
export * from './core'; | |||
export * from './errors'; | |||
export * from './storage'; | |||
export * from './utils'; |
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.
nit question,
Should these be updated to named exports later on to keep it uniform across all categories
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'm not opposed to it but we do this in various other places as well - including other packages - so I'm not sure this is the right PR to do this in
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.
thank you!!
9e69d97
Description of changes
This PR introduces some minor cleanup to improve consistency and structural semantics in
core
:WordArray
as module member so it can be re-exported directly bylibraryUtils.ts
StrictUnion
to core root level types since it is not actually coupled to Auth (and will be used by Storage in future PRs)Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.