Skip to content
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

Merged
merged 1 commit into from
Mar 11, 2018
Merged

Conversation

layershifter
Copy link
Member

Fixes #2608.

}

export interface ResponsiveWidthShorthand {
minWidth: number;
maxWidth?: number;
minWidth?: number | string;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minWidth is actually optional

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;
Copy link
Member Author

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

Codecov Report

Merging #2633 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e72b987...be6ce45. Read the comment docs.

@layershifter layershifter merged commit 00bd143 into master Mar 11, 2018
@layershifter layershifter deleted the fix/responsive-typings branch March 11, 2018 12:10
Brantron pushed a commit to Brantron/Semantic-UI-React that referenced this pull request Mar 14, 2018
@levithomason
Copy link
Member

Released in semantic-ui-react@0.79.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants