5.0.27 • Published 2 years ago

@types/react-router-redux v5.0.27

Weekly downloads
58,511
License
MIT
Repository
github
Last release
2 years 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

2 years ago

5.0.26

2 years ago

3.0.13

2 years ago

3.0.16

2 years ago

3.0.14

2 years ago

3.0.15

2 years ago

5.0.23

2 years ago

5.0.24

2 years ago

5.0.25

2 years ago

4.0.56

2 years ago

4.0.58

2 years ago

4.0.57

2 years ago

5.0.22

2 years ago

3.0.12

3 years ago

4.0.55

3 years ago

3.0.11

4 years ago

5.0.21

4 years ago

4.0.54

4 years ago

5.0.20

4 years ago

4.0.53

4 years ago

5.0.19

4 years ago

3.0.10

6 years ago

4.0.52

6 years ago

5.0.18

6 years ago

5.0.17

7 years ago

5.0.16

7 years ago

5.0.15

7 years ago

5.0.14

7 years ago

5.0.13

7 years ago

5.0.12

7 years ago

5.0.11

8 years ago

5.0.10

8 years ago

4.0.51

8 years ago

5.0.9

8 years ago

3.0.9

8 years ago

5.0.8

8 years ago

3.0.8

8 years ago

4.0.50

8 years ago

5.0.7

8 years ago

4.0.49

8 years ago

3.0.7

8 years ago

5.0.6

8 years ago

5.0.5

8 years ago

5.0.4

8 years ago

5.0.3

8 years ago

4.0.48

8 years ago

4.0.47

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

4.0.46

8 years ago

4.0.45

8 years ago

5.0.0

8 years ago

3.0.6

8 years ago

4.0.44

8 years ago

4.0.43

8 years ago

3.0.5

8 years ago

4.0.42

8 years ago

3.0.4

8 years ago

4.0.41

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

4.0.40

8 years ago

3.0.1

8 years ago

4.0.39

8 years ago

4.0.38

9 years ago

4.0.37

9 years ago

3.0.0

9 years ago

4.0.36

9 years ago

4.0.35

9 years ago

4.0.34

9 years ago

4.0.33

9 years ago

4.0.32

9 years ago

4.0.31

9 years ago

4.0.30

9 years ago

4.0.29

9 years ago

4.0.28

9 years ago

4.0.27

9 years ago

4.0.26-alpha

9 years ago

4.0.24-alpha

9 years ago

4.0.23-alpha

9 years ago

4.0.22-alpha

9 years ago

4.0.21-alpha

9 years ago

4.0.20-alpha

9 years ago

4.0.19-alpha

9 years ago

4.0.14-alpha

9 years ago

4.0.13-alpha

9 years ago