-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(Responsive): fix types in typings #2633
Conversation
} | ||
|
||
export interface ResponsiveWidthShorthand { | ||
minWidth: number; | ||
maxWidth?: number; | ||
minWidth?: number | string; |
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.
minWidth
is actually optional
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 a potentially breaking change (everyone who expects minWidth to be there and has coded against it will now potentially run into linter errors stating that minWidth is optional and should change their code to check for this).
minWidth: number; | ||
maxWidth?: number; | ||
minWidth?: number | string; | ||
maxWidth?: number | string; |
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.
minWidth
and maxWidth
can be strings, see props definitions
Codecov Report
@@ Coverage Diff @@
## master #2633 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 160 160
Lines 2750 2750
=======================================
Hits 2743 2743
Misses 7 7 Continue to review full report at Codecov.
|
Released in |
Fixes #2608.