annotate parameter with type

This commit is contained in:
Akinwale Ariwodola 2019-03-27 07:58:21 +01:00
parent 04bdf1043c
commit 049c432b8b

View file

@ -31,7 +31,7 @@ export const selectSearchQuery: (state: State) => ?string = createSelector(
selectCurrentPage,
selectCurrentParams,
selectSearchValue,
(page: string, params: ?{ query: string }, searchValue) =>
(page: string, params: ?{ query: string }, searchValue: string) =>
page === 'search' ? params && params.query : searchValue
);