Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
style: add Hindley Milner comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Aug 1, 2019
1 parent 95f733d commit d438038
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions breakpoints/media-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.up = (atrule, breakpoints) => {
validateOrientation(atrule);
validateBreakpointValue(breakpoints, atrule);

// String -> String
return pipe(
getBreakpointValues,
calcMinWidth(breakpoints),
Expand All @@ -35,6 +36,7 @@ exports.down = (atrule, breakpoints) => {
validateBreakpointValue(breakpoints, atrule);
lastBreakpointOrNot(breakpoints, atrule);

// String -> String
return pipe(
getBreakpointValues,
calcMaxWidth(breakpoints),
Expand All @@ -51,11 +53,13 @@ exports.only = (atrule, breakpoints) => {
validateBreakpointValue(breakpoints, atrule);
lastBreakpointOrNot(breakpoints, atrule);

// min :: String -> String
const min = pipe(
getBreakpointValues,
calcMinWidth(breakpoints),
);

// max :: String -> String
const max = pipe(
getBreakpointValues,
calcMaxWidth(breakpoints),
Expand Down

0 comments on commit d438038

Please sign in to comment.