0.1.19 • Published 6 months ago

@types/react-intl-redux v0.1.19

Weekly downloads
7,561
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-intl-redux

Summary

This package contains type definitions for react-intl-redux (https://github.com/ratson/react-intl-redux).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-intl-redux.

index.d.ts

// 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
    formats?: any
}

interface IntlAction extends Action {
    payload?: IntlState | undefined
}

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> {}

Additional Details

Credits

These definitions were written by Karol Janyst.

0.1.17

7 months ago

0.1.18

7 months ago

0.1.19

6 months ago

0.1.16

2 years ago

0.1.15

3 years ago

0.1.14

4 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago