diff --git a/src/store/rootConnector.ts b/src/store/rootConnector.ts index e23e98f..ef68228 100644 --- a/src/store/rootConnector.ts +++ b/src/store/rootConnector.ts @@ -1,6 +1,6 @@ import { connect, ConnectedProps } from 'react-redux'; import { Dispatch } from 'redux'; -import { IAppState } from './rootReducer'; +import { IAppState } from './types'; export type rootProps = ConnectedProps; diff --git a/src/store/types.ts b/src/store/types.ts index 0133296..15be055 100644 --- a/src/store/types.ts +++ b/src/store/types.ts @@ -1,14 +1,14 @@ import { Country } from '../types'; export interface IAppState { - lang: 'EN' | 'RU' | 'DE', + lang: 'EN' | 'RU' | 'DE' | undefined, countries: Country[], } export interface RootReducerAction { type: string, payload: { - lang?: string, + lang?: 'EN' | 'RU' | 'DE', countries?: Country[], } } diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 40f1ea2..6430bc3 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -2,7 +2,9 @@ export interface Country { id: string, name: string, pictureURL: string, + capitalLatLng?: [number, number] | undefined, } + export interface URLParamTypes { countryId: string, }