Skip to content

Commit

Permalink
any -> unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 22, 2019
1 parent 144b4b9 commit 6612edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import FormLabel from '@material-ui/core/FormLabel';
function FormControlLabelPosition() {
const [value, setValue] = React.useState('female');

function handleChange(event: React.ChangeEvent<any>) {
setValue(event.target.value);
function handleChange(event: React.ChangeEvent<unknown>) {
setValue((event.target as HTMLInputElement).value);
}

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function RadioButtonsGroup() {
const classes = useStyles();
const [value, setValue] = React.useState('female');

function handleChange(event: React.ChangeEvent<any>) {
setValue(event.target.value);
function handleChange(event: React.ChangeEvent<unknown>) {
setValue((event.target as HTMLInputElement).value);
}

return (
Expand Down

0 comments on commit 6612edc

Please sign in to comment.