boring-router
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -63,3 +63,3 @@ import { IAutorunOptions, IReactionDisposer, IReactionOptions, IReactionPublic } from 'mobx'; | ||
export declare type RouteReactionEffect<T> = (value: T, previousValue: T, reaction: IReactionPublic) => void; | ||
export declare type RouteReactionOptions<T> = IReactionOptions<T> | undefined; | ||
export declare type RouteReactionOptions<T, FireImmediately extends boolean = boolean> = IReactionOptions<T, FireImmediately> | undefined; | ||
export declare type RouteHookRemovalCallback = () => void; | ||
@@ -66,0 +66,0 @@ export declare type RouteBeforeEnterOrUpdateCallback<TRouteMatch extends RouteMatch = RouteMatch> = (next: TRouteMatch['$next']) => Promise<boolean | void> | boolean | void; |
{ | ||
"name": "boring-router", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "A type-safe MobX router with parallel routing support.", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"jest": "^27.1.1", | ||
"mobx": "^6.3.3", | ||
"mobx": "^6.3.5", | ||
"ts-jest": "^27.0.5" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "99fbeaaac90007ecb991e15d8476fa7d5b6c5efa" | ||
"gitHead": "7dd3171add1618777dfbb69ad45c90997ccfa105" | ||
} |
@@ -158,9 +158,15 @@ import { | ||
export type RouteReactionOptions<T> = IReactionOptions<T> | undefined; | ||
export type RouteReactionOptions< | ||
T, | ||
FireImmediately extends boolean = boolean, | ||
> = IReactionOptions<T, FireImmediately> | undefined; | ||
interface RouteReactionEntry<T = unknown> { | ||
interface RouteReactionEntry< | ||
T = unknown, | ||
FireImmediately extends boolean = boolean, | ||
> { | ||
type: 'reaction'; | ||
expression: RouteReactionExpression<T>; | ||
effect: RouteReactionEffect<T>; | ||
options: RouteReactionOptions<T> | undefined; | ||
options: RouteReactionOptions<T, FireImmediately> | undefined; | ||
disposer: RouteReactiveDisposer | undefined; | ||
@@ -167,0 +173,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4759
239570
1