
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
@types/redux-first-routing
Advanced tools
TypeScript definitions for redux-first-routing
npm install --save @types/redux-first-routing
This package contains type definitions for redux-first-routing (https://github.com/mksarge/redux-first-routing).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-first-routing.
import { Hash, History, LocationDescriptorObject, Path, Pathname, Search } from "history";
import createBrowserHistory from "history/createBrowserHistory";
import { Action, Middleware, Reducer, Store } from "redux";
export { createBrowserHistory };
export function startListener(history: History, store: Store): void;
// constants
export const PUSH: "ROUTER/PUSH";
export const REPLACE: "ROUTER/REPLACE";
export const GO: "ROUTER/GO";
export const GO_BACK: "ROUTER/GO_BACK";
export const GO_FORWARD: "ROUTER/GO_FORWARD";
export const LOCATION_CHANGE: "ROUTER/LOCATION_CHANGE";
// actions
export interface pushAction<T extends Path | LocationDescriptorObject> extends Action<typeof PUSH> {
payload: T;
}
export function push<T extends Path | LocationDescriptorObject>(href: T): pushAction<T>;
export interface replaceAction<T extends Path | LocationDescriptorObject> extends Action<typeof REPLACE> {
payload: T;
}
export function replace<T extends Path | LocationDescriptorObject>(href: T): replaceAction<T>;
export interface goAction<T extends number> extends Action<typeof GO> {
payload: T;
}
export function go<T extends number>(index: T): goAction<T>;
export type goBackAction = Action<typeof GO_BACK>;
export function goBack(): goBackAction;
export type goForwardAction = Action<typeof GO_FORWARD>;
export function goForward(): goForwardAction;
export interface locationChangeAction<P extends Pathname, S extends Search, H extends Hash>
extends Action<typeof LOCATION_CHANGE>
{
payload: {
pathname: P;
search: S;
queries: any;
hash: H;
};
}
export function locationChange<P extends Pathname, S extends Search, H extends Hash>(
_: { pathname: P; search: S; hash: H },
): locationChangeAction<P, S, H>;
export interface State {
pathname: Pathname;
search: Search;
queries: any;
hash: Hash;
}
export const routerReducer: Reducer<State>;
export function routerMiddleware(history: History): Middleware<any, State>;
These definitions were written by Tomek Łaziuk.
FAQs
TypeScript definitions for redux-first-routing
We found that @types/redux-first-routing 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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.