Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/redux-first-router

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/redux-first-router - npm Package Compare versions

Comparing version 1.4.1 to 1.9.0

63

redux-first-router/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for redux-first-router 1.4
// Type definitions for redux-first-router 1.9
// Project: https://github.com/faceyspacey/redux-first-router#readme
// Definitions by: Valbrand <https://github.com/Valbrand>
// viggyfresh <https://github.com/viggyfresh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -41,7 +42,21 @@ // TypeScript Version: 2.2

type: string;
payload: object;
payload: Payload;
meta?: object;
navKey?: string | null;
query?: object;
search?: string;
navKey?: Nullable<string>;
}
export interface ReceivedActionMeta {
type: string;
payload: Payload;
query?: object;
navKey?: Nullable<string>;
meta: {
notFoundPath?: string;
query?: object;
search?: string;
};
}
export interface HistoryData {

@@ -56,3 +71,5 @@ entries: Array<{ pathname: string }>;

type: string;
payload: object;
payload: Payload;
query?: object;
search?: string;
}

@@ -63,3 +80,5 @@

type: string;
payload: object;
payload: Payload;
query?: object;
search?: string;
prev: Location;

@@ -86,3 +105,3 @@ kind: Nullable<string>;

action?: NavigationAction;
params?: object;
params?: Params;
meta?: object;

@@ -95,2 +114,4 @@ }

navigation?: NavigationAction;
query?: object;
search?: string;
}

@@ -100,5 +121,6 @@

type: string;
payload: object;
payload: Payload;
meta: Meta;
navKey?: string;
query?: object;
navKey?: Nullable<string>;
}

@@ -108,2 +130,3 @@

pathname: string;
search?: string;
}

@@ -120,3 +143,3 @@

getStateForAction(action: object, state: Nullable<object>): Nullable<object>;
getPathAndParamsForState(state: object): { path: Nullable<string>, params: Nullable<object> };
getPathAndParamsForState(state: object): { path: Nullable<string>, params: Nullable<Params> };
getActionForPathAndParams(path: string): Nullable<object>;

@@ -133,2 +156,10 @@ }

export type SelectLocationState = (state: object) => LocationState;
export type SelectTitleState = (state: object) => string;
export interface QuerySerializer {
stringify(params: Params): string;
parse(queryString: string): object;
}
export interface NavigatorsConfig {

@@ -156,4 +187,4 @@ navigators: Navigators;

export interface Options {
title?: string;
location?: string;
title?: string | SelectTitleState;
location?: string | SelectLocationState;
notFoundPath?: string;

@@ -165,5 +196,10 @@ scrollTop?: boolean;

restoreScroll?(history: History): ScrollBehavior;
initialDispatch?: boolean;
querySerializer?: QuerySerializer;
navigators?: NavigatorsConfig;
}
export type Params = object;
export type Payload = object;
export type ScrollUpdater = (performedByUser: boolean) => void;

@@ -184,6 +220,7 @@

export function connectRoutes(history: History, routesMap: RoutesMap, options?: Options): {
reducer: Reducer<LocationState>
reducer: Reducer<LocationState>,
middleware: Middleware,
thunk<S>(store: Store<S>): Promise<Nullable<RouteThunk>>,
enhancer: GenericStoreEnhancer
enhancer: GenericStoreEnhancer,
initialDispatch?(): void
};

@@ -190,0 +227,0 @@

{
"name": "@types/redux-first-router",
"version": "1.4.1",
"version": "1.9.0",
"description": "TypeScript definitions for redux-first-router",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/Valbrand"
},
{
"name": "viggyfresh",
"url": "https://github.com/viggyfresh"
}

@@ -24,4 +28,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "fbeab90fd498549b99e5a14f7a81a71bdc3beb3f7f20b68e999ac8225bba14bd",
"typesPublisherContentHash": "232d4fbc6eb7ae2c696ecb0aa6f75616184909adb307780cae10721d8ff08889",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Fri, 23 Jun 2017 21:45:59 GMT
* Last updated: Mon, 07 Aug 2017 16:24:26 GMT
* Dependencies: redux, history

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Valbrand <https://github.com/Valbrand>.
These definitions were written by Valbrand <https://github.com/Valbrand>, viggyfresh <https://github.com/viggyfresh>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc