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

@@ -46,7 +46,7 @@ type Props = {
// dispatched functions
fetchRepos: string => void,
fetchReposByPage: (link: string, page: number, filter?: any) => void,
fetchReposByPage: (link: string, page: number, filter?: string) => void,
fetchReposByLink: string => void
};
@@ -164,7 +164,7 @@ class Overview 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;
};
}
@@ -191,7 +191,7 @@ const mapDispatchToProps = dispatch => {
fetchRepos: (link: string) => {
dispatch(fetchRepos(link));
},
fetchReposByPage: (link: string, page: number, filter?: any) => {
fetchReposByPage: (link: string, page: number, filter?: string) => {
dispatch(fetchReposByPage(link, page, filter));
},
fetchReposByLink: (link: string) => {