From 6018e9d35577b90429f587c5aa5bf1f41581494c Mon Sep 17 00:00:00 2001 From: jero Date: Sun, 26 May 2019 01:18:07 +0300 Subject: [PATCH] feat(getProducts): apply Flow's strict typing --- src/app/store/actions/getProducts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/store/actions/getProducts.js b/src/app/store/actions/getProducts.js index 9886572a..a05b0e54 100644 --- a/src/app/store/actions/getProducts.js +++ b/src/app/store/actions/getProducts.js @@ -2,9 +2,11 @@ import { api } from '@/api'; +import type { ProductsType } from '@/store/types/ProductsType'; + import * as types from '../ActionTypes'; -export default function getCountries(query: string = '') { +export default function getProducts(query: string = '') { return { types: [ @@ -12,7 +14,7 @@ export default function getCountries(query: string = '') { types.GET_PRODUCTS_SUCCESS, types.GET_PRODUCTS_FAILURE ], - callAPI: () => api.get(query), + callAPI: () => api.get(query), }; } \ No newline at end of file