@types/redux-first-router
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -39,11 +39,11 @@ // Type definitions for redux-first-router 2.1 | ||
export type RouteObject<TKeys = {}, TState = any> = TKeys & { | ||
capitalizedWords?: boolean; | ||
navKey?: string; | ||
path?: string; | ||
thunk?: RouteThunk<TState>; | ||
capitalizedWords?: boolean | undefined; | ||
navKey?: string | undefined; | ||
path?: string | undefined; | ||
thunk?: RouteThunk<TState> | undefined; | ||
fromPath?(path: string, key?: string): string; | ||
toPath?(param: string, key?: string): string; | ||
coerceNumbers?: boolean; | ||
confirmLeave?: ConfirmLeave; | ||
meta?: Meta; | ||
coerceNumbers?: boolean | undefined; | ||
confirmLeave?: ConfirmLeave | undefined; | ||
meta?: Meta | undefined; | ||
}; | ||
@@ -60,6 +60,6 @@ | ||
payload: Payload; | ||
meta?: object; | ||
query?: Query; | ||
search?: string; | ||
navKey?: Nullable<string>; | ||
meta?: object | undefined; | ||
query?: Query | undefined; | ||
search?: string | undefined; | ||
navKey?: Nullable<string> | undefined; | ||
} | ||
@@ -70,8 +70,8 @@ | ||
payload: Payload; | ||
query?: Query; | ||
navKey?: Nullable<string>; | ||
query?: Query | undefined; | ||
navKey?: Nullable<string> | undefined; | ||
meta: { | ||
notFoundPath?: string; | ||
query?: Query; | ||
search?: string; | ||
notFoundPath?: string | undefined; | ||
query?: Query | undefined; | ||
search?: string | undefined; | ||
}; | ||
@@ -92,4 +92,4 @@ } | ||
payload: Payload; | ||
query?: Query; | ||
search?: string; | ||
query?: Query | undefined; | ||
search?: string | undefined; | ||
} | ||
@@ -101,4 +101,4 @@ | ||
payload: Payload; | ||
query?: Query; | ||
search?: string; | ||
query?: Query | undefined; | ||
search?: string | undefined; | ||
prev: Location; | ||
@@ -108,3 +108,3 @@ kind: Nullable<string>; | ||
routesMap: RoutesMap<TKeys, TState>; | ||
hasSSR?: boolean; | ||
hasSSR?: boolean | undefined; | ||
} | ||
@@ -121,9 +121,9 @@ | ||
type: string; | ||
key?: Nullable<string>; | ||
navKey?: Nullable<string>; | ||
routeName?: string; | ||
actions?: NavigationAction[]; | ||
action?: NavigationAction; | ||
params?: Params; | ||
meta?: object; | ||
key?: Nullable<string> | undefined; | ||
navKey?: Nullable<string> | undefined; | ||
routeName?: string | undefined; | ||
actions?: NavigationAction[] | undefined; | ||
action?: NavigationAction | undefined; | ||
params?: Params | undefined; | ||
meta?: object | undefined; | ||
} | ||
@@ -133,6 +133,6 @@ | ||
location: ActionMetaLocation; | ||
notFoundPath?: string; | ||
navigation?: NavigationAction; | ||
query?: Query; | ||
search?: string; | ||
notFoundPath?: string | undefined; | ||
navigation?: NavigationAction | undefined; | ||
query?: Query | undefined; | ||
search?: string | undefined; | ||
} | ||
@@ -142,6 +142,6 @@ | ||
type: string; | ||
payload?: Payload; | ||
meta?: Meta; | ||
query?: Query; | ||
navKey?: Nullable<string>; | ||
payload?: Payload | undefined; | ||
meta?: Meta | undefined; | ||
query?: Query | undefined; | ||
navKey?: Nullable<string> | undefined; | ||
} | ||
@@ -151,3 +151,3 @@ | ||
pathname: string; | ||
search?: string; | ||
search?: string | undefined; | ||
} | ||
@@ -226,7 +226,7 @@ | ||
*/ | ||
basename?: string; | ||
basename?: string | undefined; | ||
/** | ||
* Whether or not a trailing delimiter is allowed when matching path. | ||
*/ | ||
strict?: boolean; | ||
strict?: boolean | undefined; | ||
/** | ||
@@ -236,3 +236,3 @@ * The name of the state key or a selector function to specify where in your Redux state tree | ||
*/ | ||
location?: string | SelectLocationState<TKeys, TState>; | ||
location?: string | SelectLocationState<TKeys, TState> | undefined; | ||
/** | ||
@@ -243,11 +243,11 @@ * The name of the state key or a selector function to specify where in your Redux state tree | ||
*/ | ||
title?: string | SelectTitleState<TState>; | ||
title?: string | SelectTitleState<TState> | undefined; | ||
/** | ||
* Can be set to false to bypass the initial dispatch, so you can do it manually, perhaps after running sagas. | ||
*/ | ||
initialDispatch?: boolean; | ||
initialDispatch?: boolean | undefined; | ||
/** | ||
* An array of entries to initialise history object. Useful for server side rendering and tests. | ||
*/ | ||
initialEntries?: HistoryEntries; | ||
initialEntries?: HistoryEntries | undefined; | ||
/** | ||
@@ -257,3 +257,3 @@ * An object with parse and stringify methods, such as the `query-string` or `qs` libraries (or anything handmade). | ||
*/ | ||
querySerializer?: QuerySerializer; | ||
querySerializer?: QuerySerializer | undefined; | ||
/** | ||
@@ -264,7 +264,7 @@ * The path where users may be redirected in 2 situations: when you dispatch an action with no matching path, | ||
*/ | ||
notFoundPath?: string; | ||
notFoundPath?: string | undefined; | ||
/** | ||
* Whether or not window.scrollTo(0, 0) should be run on route changes so the user starts each page at the top. | ||
*/ | ||
scrollTop?: boolean; | ||
scrollTop?: boolean | undefined; | ||
/** | ||
@@ -298,3 +298,3 @@ * A function to update window/elements scroll position. | ||
*/ | ||
displayConfirmLeave?: DisplayConfirmLeave; | ||
displayConfirmLeave?: DisplayConfirmLeave | undefined; | ||
/** | ||
@@ -307,3 +307,3 @@ * A function returning a history object compatible with the popular `history` package. | ||
*/ | ||
navigators?: NavigatorsConfig<TKeys, TState>; | ||
navigators?: NavigatorsConfig<TKeys, TState> | undefined; | ||
/** | ||
@@ -328,3 +328,3 @@ * An optional value that will be passed as part of the third `bag` argument to all options callbacks and routes thunk. | ||
export interface Payload { | ||
query?: Query; | ||
query?: Query | undefined; | ||
[key: string]: any; | ||
@@ -331,0 +331,0 @@ } |
{ | ||
"name": "@types/redux-first-router", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "TypeScript definitions for redux-first-router", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-first-router", | ||
"license": "MIT", | ||
@@ -70,4 +71,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "b9fcef0ebec8c7c215818bd6ce18a62bf0e5486e9f9f803f9d825cd26e2c03ce", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "a55a3b601b00051bd4a13f01eb9f701bb9498157e298ce74dd34fed13522a1ff", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 25 Jan 2020 00:56:15 GMT | ||
* Last updated: Thu, 08 Jul 2021 22:41:51 GMT | ||
* Dependencies: [@types/redux](https://npmjs.com/package/@types/redux), [@types/history](https://npmjs.com/package/@types/history) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Valbrand (https://github.com/Valbrand), viggyfresh (https://github.com/viggyfresh), janb87 (https://github.com/janb87), corydeppen (https://github.com/corydeppen), jscinoz (https://github.com/jscinoz), surgeboris (https://github.com/surgeboris), geirsagberg (https://github.com/geirsagberg), Harry Hedger (https://github.com/hedgerh), Adam Rich (https://github.com/adam1658), and Karl-Aksel Puulmann (https://github.com/macobo). | ||
These definitions were written by [Valbrand](https://github.com/Valbrand), [viggyfresh](https://github.com/viggyfresh), [janb87](https://github.com/janb87), [corydeppen](https://github.com/corydeppen), [jscinoz](https://github.com/jscinoz), [surgeboris](https://github.com/surgeboris), [geirsagberg](https://github.com/geirsagberg), [Harry Hedger](https://github.com/hedgerh), [Adam Rich](https://github.com/adam1658), and [Karl-Aksel Puulmann](https://github.com/macobo). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
17034
0