Skip to content

Commit

Permalink
Bump typescript-to-proptypes from 1.3.0 to 1.4.0 (#18404)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Nov 18, 2019
1 parent 0449bba commit fa764b9
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 11 deletions.
6 changes: 5 additions & 1 deletion docs/src/pages/components/autocomplete/Virtualize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import useMediaQuery from '@material-ui/core/useMediaQuery';
Expand Down Expand Up @@ -50,6 +50,10 @@ const ListboxComponent = React.forwardRef(function ListboxComponent(props, ref)
);
});

ListboxComponent.propTypes = {
children: PropTypes.node,
};

function random(length) {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let result = '';
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/components/autocomplete/Virtualize.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
Expand Down
9 changes: 8 additions & 1 deletion docs/src/pages/components/modal/SpringModal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Modal from '@material-ui/core/Modal';
import Backdrop from '@material-ui/core/Backdrop';
Expand Down Expand Up @@ -43,6 +43,13 @@ const Fade = React.forwardRef(function Fade(props, ref) {
);
});

Fade.propTypes = {
children: PropTypes.element,
in: PropTypes.bool.isRequired,
onEnter: PropTypes.func,
onExited: PropTypes.func,
};

export default function SpringModal() {
const classes = useStyles();
const [open, setOpen] = React.useState(false);
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/components/modal/SpringModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import Modal from '@material-ui/core/Modal';
Expand Down
9 changes: 8 additions & 1 deletion docs/src/pages/components/popper/SpringPopper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Popper from '@material-ui/core/Popper';
import { useSpring, animated } from 'react-spring/web.cjs'; // web.cjs is required for IE 11 support
Expand Down Expand Up @@ -36,6 +36,13 @@ const Fade = React.forwardRef(function Fade(props, ref) {
);
});

Fade.propTypes = {
children: PropTypes.element,
in: PropTypes.bool,
onEnter: PropTypes.func,
onExited: PropTypes.func,
};

export default function SpringPopper() {
const classes = useStyles();
const [anchorEl, setAnchorEl] = React.useState(null);
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/components/popper/SpringPopper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import Popper from '@material-ui/core/Popper';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"ts-node": "^8.3.0",
"tslint": "5.14.0",
"typescript": "3.2.4",
"typescript-to-proptypes": "^1.3.0",
"typescript-to-proptypes": "^1.4.0",
"vrtest": "^0.2.0",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14536,10 +14536,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript-to-proptypes@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/typescript-to-proptypes/-/typescript-to-proptypes-1.3.0.tgz#0b645ce754532aa00697449844fc0c600094b78f"
integrity sha512-uzOnSpiGRMarKaXRIpt6zmHiuHhoFujU6eY0wYk3WcbR/86J/pfQpgvBpgoCOW3ScUUkC/QyYyCo8hqRv+OZJQ==
typescript-to-proptypes@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/typescript-to-proptypes/-/typescript-to-proptypes-1.4.0.tgz#6253e85b4640a5a1829c3c6bc92a3941062621b2"
integrity sha512-kGatNmhRV1jjwKCxzo0ohoQZCYqfY3pP9Zzskq02LzaKdIrlh6eLyTk9ucBw5eIWyq5ZoavxXPkRreVFUp9zGw==
dependencies:
"@babel/core" "^7.5.4"
"@babel/plugin-syntax-class-properties" "^7.2.0"
Expand Down

0 comments on commit fa764b9

Please sign in to comment.