Parameter '...' implicitly has an 'any' type Ошибка
Primary tabs
Parameter 'dispatch' implicitly has an 'any' type
Решение данной проблемы является получение описания типа для переменной и применение этого описания в вашем коде.
Импортирование типа
Например, для dispatch для кода:
export const loadGoods = async (dispatch) => {
// ..............
}Решением будет:
import { Dispatch } from 'redux';
export const loadGoods = async (dispatch: Dispatch) => {
// ..............
}- Log in to post comments
- 1661 reads