5.0.27 • Published 4 months ago

@types/react-router-redux v5.0.27

Weekly downloads
58,511
License
MIT
Repository
github
Last release
4 months ago

Installation

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

Summary

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

Details

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

index.d.ts

// Type definitions for react-router-redux 3.x
// Project: https://github.com/rackt/react-router-redux
// Definitions by: Isman Usoh <https://github.com/isman-usoh>, Noah Shipley <https://github.com/noah79>, Dimitri Rosenberg <https://github.com/rosendi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as Redux from "redux";
import * as History from "history";

export const TRANSITION: string;
export const UPDATE_LOCATION: string;

export const push: PushAction;
export const replace: ReplaceAction;
export const go: GoAction;
export const goBack: GoForwardAction;
export const goForward: GoBackAction;
export const routeActions: RouteActions;

export type LocationDescriptor = History.LocationDescriptor;
export type PushAction = (nextLocation: LocationDescriptor) => any;
export type ReplaceAction = (nextLocation: LocationDescriptor) => any;
export type GoAction = (n: number) => any;
export type GoForwardAction = () => any;
export type GoBackAction = () => any;

export interface RouteActions {
    push: PushAction;
    replace: ReplaceAction;
    go: GoAction;
    goForward: GoForwardAction;
    goBack: GoBackAction;
}

export interface HistoryMiddleware extends Redux.Middleware {
    listenForReplays(store: Redux.Store<any>, selectLocationState?: Function): void;
    unsubscribe(): void;
}

export function routeReducer(state?: any, options?: any): Redux.Reducer<any>;
export function syncHistory(history: History.History): HistoryMiddleware;

Additional Details

Credits

These definitions were written by Isman Usoh, Noah Shipley, and Dimitri Rosenberg.

5.0.27

4 months ago

5.0.26

4 months ago

3.0.13

7 months ago

3.0.16

6 months ago

3.0.14

7 months ago

3.0.15

7 months ago

5.0.23

7 months ago

5.0.24

7 months ago

5.0.25

6 months ago

4.0.56

7 months ago

4.0.58

6 months ago

4.0.57

7 months ago

5.0.22

1 year ago

3.0.12

2 years ago

4.0.55

2 years ago

3.0.11

2 years ago

5.0.21

2 years ago

4.0.54

2 years ago

5.0.20

3 years ago

4.0.53

3 years ago

5.0.19

3 years ago

3.0.10

5 years ago

4.0.52

5 years ago

5.0.18

5 years ago

5.0.17

5 years ago

5.0.16

6 years ago

5.0.15

6 years ago

5.0.14

6 years ago

5.0.13

6 years ago

5.0.12

6 years ago

5.0.11

6 years ago

5.0.10

6 years ago

4.0.51

7 years ago

5.0.9

7 years ago

3.0.9

7 years ago

5.0.8

7 years ago

3.0.8

7 years ago

4.0.50

7 years ago

5.0.7

7 years ago

4.0.49

7 years ago

3.0.7

7 years ago

5.0.6

7 years ago

5.0.5

7 years ago

5.0.4

7 years ago

5.0.3

7 years ago

4.0.48

7 years ago

4.0.47

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

4.0.46

7 years ago

4.0.45

7 years ago

5.0.0

7 years ago

3.0.6

7 years ago

4.0.44

7 years ago

4.0.43

7 years ago

3.0.5

7 years ago

4.0.42

7 years ago

3.0.4

7 years ago

4.0.41

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

4.0.40

7 years ago

3.0.1

7 years ago

4.0.39

7 years ago

4.0.38

7 years ago

4.0.37

7 years ago

3.0.0

7 years ago

4.0.36

7 years ago

4.0.35

7 years ago

4.0.34

8 years ago

4.0.33

8 years ago

4.0.32

8 years ago

4.0.31

8 years ago

4.0.30

8 years ago

4.0.29

8 years ago

4.0.28

8 years ago

4.0.27

8 years ago

4.0.26-alpha

8 years ago

4.0.24-alpha

8 years ago

4.0.23-alpha

8 years ago

4.0.22-alpha

8 years ago

4.0.21-alpha

8 years ago

4.0.20-alpha

8 years ago

4.0.19-alpha

8 years ago

4.0.14-alpha

8 years ago

4.0.13-alpha

8 years ago