replaced type any with string

This commit is contained in:
Florian Scholdei
2019-04-17 16:42:27 +02:00
parent 6f975acd21
commit 83edce1410
7 changed files with 13 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ type Props = {
location: any,
// dispatch functions
fetchUsersByPage: (link: string, page: number, filter?: any) => void,
fetchUsersByPage: (link: string, page: number, filter?: string) => void,
fetchUsersByLink: (link: string) => void
};
@@ -157,7 +157,7 @@ class Users extends React.Component<Props> {
getQueryString = () => {
const { location } = this.props;
return location.search ? queryString.parse(location.search).q : null;
return location.search ? queryString.parse(location.search).q : undefined;
};
}
@@ -184,7 +184,7 @@ const mapStateToProps = (state, ownProps) => {
const mapDispatchToProps = dispatch => {
return {
fetchUsersByPage: (link: string, page: number, filter?: any) => {
fetchUsersByPage: (link: string, page: number, filter?: string) => {
dispatch(fetchUsersByPage(link, page, filter));
},
fetchUsersByLink: (link: string) => {