DefinitelyTyped/types/react-intl-redux/index.d.ts
Long Ho 13f400451a deprecate react-intl types (#37388)
* deprecate react-intl types

* fix tsconfig

* change TS version
2019-08-06 16:12:57 -07:00

24 lines
826 B
TypeScript

// Type definitions for react-intl-redux v0.1.0
// Project: https://github.com/ratson/react-intl-redux
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.3
import { Action, AnyAction } from "redux"
import { Provider as ReduxProvider } from "react-redux"
import { IntlProvider as ReactIntlProvider } from "react-intl"
interface IntlState {
locale: string
messages: any
}
interface IntlAction extends Action {
payload?: IntlState
}
export function intlReducer(state: IntlState | undefined, action: IntlAction): IntlState
export function updateIntl (opts: IntlState): IntlAction
export class IntlProvider extends ReactIntlProvider {}
export class Provider<A extends Action = AnyAction> extends ReduxProvider<A> {}