
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@types/react-router-redux
Advanced tools
npm install --save @types/react-router-redux
This package contains type definitions for react-router-redux (https://github.com/rackt/react-router-redux).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-redux/v4.
// Type definitions for react-router-redux 4.0
// Project: https://github.com/rackt/react-router-redux
// Definitions by: Isman Usoh <https://github.com/isman-usoh>
// Noah Shipley <https://github.com/noah79>
// Karol Janyst <https://github.com/LKay>
// Dovydas Navickas <https://github.com/DovydasNavickas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Action, Middleware, Store } from "redux";
import { History, Location, LocationDescriptor } from "history";
export const CALL_HISTORY_METHOD: string;
export const LOCATION_CHANGE: string;
export interface LocationActionPayload {
method: string;
args?: any[] | undefined;
}
export interface RouterAction extends Action {
payload?: LocationActionPayload | undefined;
}
export type LocationAction = (nextLocation: LocationDescriptor) => RouterAction;
export type GoAction = (n: number) => RouterAction;
export type NavigateAction = () => RouterAction;
export const push: LocationAction;
export const replace: LocationAction;
export const go: GoAction;
export const goBack: NavigateAction;
export const goForward: NavigateAction;
export interface RouteActions {
push: typeof push;
replace: typeof replace;
go: typeof go;
goForward: typeof goForward;
goBack: typeof goBack;
}
export const routerActions: RouteActions;
export interface RouterState {
locationBeforeTransitions: Location;
}
export type DefaultSelectLocationState = (state: any) => RouterState;
export interface SyncHistoryWithStoreOptions {
selectLocationState?: DefaultSelectLocationState | undefined;
adjustUrlOnReplay?: boolean | undefined;
}
export interface HistoryUnsubscribe {
unsubscribe(): void;
}
export function routerReducer(state?: RouterState, action?: Action): RouterState;
export function syncHistoryWithStore(history: History, store: Store<any>, options?: SyncHistoryWithStoreOptions): History & HistoryUnsubscribe;
export function routerMiddleware(history: History): Middleware;
These definitions were written by Isman Usoh, Noah Shipley, Karol Janyst, and Dovydas Navickas.
FAQs
TypeScript definitions for react-router-redux
The npm package @types/react-router-redux receives a total of 158,625 weekly downloads. As such, @types/react-router-redux popularity was classified as popular.
We found that @types/react-router-redux demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.