Skip to content

Commit

Permalink
Bump typescript from 4.0.5 to 4.1.5 (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Feb 11, 2021
1 parent 2aea377 commit fa54089
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"rimraf": "^3.0.2",
"rollup": "^2.26.11",
"rollup-plugin-size-snapshot": "0.12.0",
"typescript": "^4.0.2",
"typescript": "^4.1.5",
"webpack": "^4.41.2",
"yarn-run-all": "^3.1.1"
},
Expand Down
7 changes: 4 additions & 3 deletions src/constants/breakpoints/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { throwOnUndefinedProperty } from '../../utils';

// When adding a new breakpoint, make sure to include it in the ../mediaQueries TS type
export default throwOnUndefinedProperty({
const BREAKPOINTS = {
xs: 330,
sm: 576,
md: 768,
lg: 992,
xl: 1200,
xxl: 1440,
});
} as const;

export default throwOnUndefinedProperty(BREAKPOINTS);
9 changes: 1 addition & 8 deletions src/constants/mediaQueries/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { throwOnUndefinedProperty } from '../../utils';
import BREAKPOINTS from '../breakpoints';

interface MediaQueriesType extends Record<string, unknown> {
xsUp: string;
smUp: string;
mdUp: string;
lgUp: string;
xlUp: string;
xxlUp: string;
}
type MediaQueriesType = Record<`${keyof typeof BREAKPOINTS}Up`, string>;

const mediaQueries = Object.entries(BREAKPOINTS).reduce(
(accumulator, [label, px]) => ({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13726,10 +13726,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.0.2:
version "4.0.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
typescript@^4.1.5:
version "4.1.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==

unfetch@^4.1.0:
version "4.2.0"
Expand Down

0 comments on commit fa54089

Please sign in to comment.