diff --git a/react-redux-i18n/index.d.ts b/react-redux-i18n/index.d.ts index aa47bb2723..d7851b23dc 100644 --- a/react-redux-i18n/index.d.ts +++ b/react-redux-i18n/index.d.ts @@ -20,6 +20,10 @@ declare module 'react-redux-i18n' { type TranslationObjects = { [lang: string]: SubTranslationObject }; + type DispatchCallback = { + (dispatch?: redux.Dispatch, getState?: () => S): any; + } + type I18nState = { translations: TranslationObjects; locale: string; @@ -55,8 +59,8 @@ declare module 'react-redux-i18n' { /** * Redux Actions */ - export function loadTranslations(translationsObject: TranslationObjects): void; + export function loadTranslations(translationsObject: TranslationObjects): DispatchCallback; - export function setLocale(locale: string): void; + export function setLocale(locale: string): DispatchCallback; }