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

3 years ago

3.0.16

2 years ago

3.0.14

2 years ago

3.0.15

2 years ago

5.0.23

3 years ago

5.0.24

2 years ago

5.0.25

2 years ago

4.0.56

3 years ago

4.0.58

2 years ago

4.0.57

2 years ago

5.0.22

3 years ago

3.0.12

4 years ago

4.0.55

4 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

5 years ago

5.0.19

5 years ago

3.0.10

7 years ago

4.0.52

7 years ago

5.0.18

7 years ago

5.0.17

7 years ago

5.0.16

8 years ago

5.0.15

8 years ago

5.0.14

8 years ago

5.0.13

8 years ago

5.0.12

8 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

9 years ago

3.0.8

9 years ago

4.0.50

9 years ago

5.0.7

9 years ago

4.0.49

9 years ago

3.0.7

9 years ago

5.0.6

9 years ago

5.0.5

9 years ago

5.0.4

9 years ago

5.0.3

9 years ago

4.0.48

9 years ago

4.0.47

9 years ago

5.0.2

9 years ago

5.0.1

9 years ago

4.0.46

9 years ago

4.0.45

9 years ago

5.0.0

9 years ago

3.0.6

9 years ago

4.0.44

9 years ago

4.0.43

9 years ago

3.0.5

9 years ago

4.0.42

9 years ago

3.0.4

9 years ago

4.0.41

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

4.0.40

9 years ago

3.0.1

9 years ago

4.0.39

9 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

10 years ago

4.0.32

10 years ago

4.0.31

10 years ago

4.0.30

10 years ago

4.0.29

10 years ago

4.0.28

10 years ago

4.0.27

10 years ago

4.0.26-alpha

10 years ago

4.0.24-alpha

10 years ago

4.0.23-alpha

10 years ago

4.0.22-alpha

10 years ago

4.0.21-alpha

10 years ago

4.0.20-alpha

10 years ago

4.0.19-alpha

10 years ago

4.0.14-alpha

10 years ago

4.0.13-alpha

10 years ago