-
Notifications
You must be signed in to change notification settings - Fork 65
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
Expand generic type names to be more descriptive #155
Conversation
f21ffc7
to
389f091
Compare
export { BreakpointKey } from "./Breakpoints" | ||
export { BreakpointConstraint as BreakpointKey } from "./Breakpoints" |
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.
This is to avoid having breaking changes in the external API
export enum BreakpointKey { | ||
export enum BreakpointConstraint { |
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.
While this is technically a breaking change for this module's api, it should only affect the internal API.
The external API is preserved via this change.
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.
Nice 👍
🚀 PR was released in |
This is a quality of life refactor to ease understanding of what types represent what. It expends generic template names like
B
to be a more descriptiveBreakpointKey
.There are a few particular places that deserve special attention which I'll call out in the changes.
Release Notes
This update expands the generic type names to be self descriptive instead of being single characters. While this change predominately only affects internal types the internal
BreakpointKey
was renamed toBreakpointConstraint
. Give that that's not documented as part of our external API we haven't listed this release as a breaking change; however, if you use that import you will need to update your references.