@reactive-js/react-router
Advanced tools
Comparing version
/// <reference types="react" /> | ||
import { StateStoreLike, StateUpdaterLike } from "@reactive-js/ix"; | ||
import { StateUpdaterLike, AsyncIteratorResourceLike } from "@reactive-js/ix"; | ||
import { SchedulerLike } from "@reactive-js/scheduler"; | ||
@@ -15,3 +15,3 @@ export interface RelativeURILike { | ||
export interface RouterProps { | ||
readonly locationStore: StateStoreLike<RelativeURILike>; | ||
readonly locationStore: AsyncIteratorResourceLike<StateUpdaterLike<RelativeURILike>, RelativeURILike>; | ||
readonly notFound: React.ComponentType<RoutableComponentProps>; | ||
@@ -18,0 +18,0 @@ readonly routes: readonly [string, React.ComponentType<RoutableComponentProps>][]; |
/// <reference types="react" /> | ||
import { StateStoreLike, StateUpdaterLike } from "@reactive-js/ix"; | ||
import { StateUpdaterLike, AsyncIteratorResourceLike } from "@reactive-js/ix"; | ||
import { SchedulerLike } from "@reactive-js/scheduler"; | ||
@@ -15,3 +15,3 @@ export interface RelativeURILike { | ||
export interface RouterProps { | ||
readonly locationStore: StateStoreLike<RelativeURILike>; | ||
readonly locationStore: AsyncIteratorResourceLike<StateUpdaterLike<RelativeURILike>, RelativeURILike>; | ||
readonly notFound: React.ComponentType<RoutableComponentProps>; | ||
@@ -18,0 +18,0 @@ readonly routes: readonly [string, React.ComponentType<RoutableComponentProps>][]; |
/// <reference types="react" /> | ||
import { StateStoreLike, StateUpdaterLike } from "@reactive-js/ix"; | ||
import { StateUpdaterLike, AsyncIteratorResourceLike } from "@reactive-js/ix"; | ||
import { SchedulerLike } from "@reactive-js/scheduler"; | ||
@@ -15,3 +15,3 @@ export interface RelativeURILike { | ||
export interface RouterProps { | ||
readonly locationStore: StateStoreLike<RelativeURILike>; | ||
readonly locationStore: AsyncIteratorResourceLike<StateUpdaterLike<RelativeURILike>, RelativeURILike>; | ||
readonly notFound: React.ComponentType<RoutableComponentProps>; | ||
@@ -18,0 +18,0 @@ readonly routes: readonly [string, React.ComponentType<RoutableComponentProps>][]; |
@@ -22,3 +22,3 @@ [@reactive-js/react-router](../README.md) › [RouterProps](routerprops.md) | ||
• **locationStore**: *StateStoreLike‹[RelativeURILike](relativeurilike.md)›* | ||
• **locationStore**: *AsyncIteratorResourceLike‹StateUpdaterLike‹[RelativeURILike](relativeurilike.md)›, [RelativeURILike](relativeurilike.md)›* | ||
@@ -25,0 +25,0 @@ ___ |
{ | ||
"name": "@reactive-js/react-router", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"main": "dist/cjs/index.js", | ||
@@ -41,7 +41,7 @@ "module": "dist/esm5/index.js", | ||
"dependencies": { | ||
"@reactive-js/ix": "^0.0.20", | ||
"@reactive-js/pipe": "^0.0.20", | ||
"@reactive-js/react": "^0.0.20", | ||
"@reactive-js/rx": "^0.0.20", | ||
"@reactive-js/scheduler": "^0.0.20", | ||
"@reactive-js/ix": "^0.0.21", | ||
"@reactive-js/pipe": "^0.0.21", | ||
"@reactive-js/react": "^0.0.21", | ||
"@reactive-js/rx": "^0.0.21", | ||
"@reactive-js/scheduler": "^0.0.21", | ||
"react": "^16.11.0" | ||
@@ -62,3 +62,3 @@ }, | ||
}, | ||
"gitHead": "d78cd2b94c3a6a1a4eac41b8c9ca81bd9b98167d" | ||
"gitHead": "3457dad433e17a7335b6c9ba083762ea3ad6ef31" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { StateStoreLike, StateUpdaterLike } from "@reactive-js/ix"; | ||
import { StateUpdaterLike, AsyncIteratorResourceLike } from "@reactive-js/ix"; | ||
import { useObservable } from "@reactive-js/react"; | ||
@@ -31,3 +31,6 @@ import { map, scan } from "@reactive-js/rx"; | ||
export interface RouterProps { | ||
readonly locationStore: StateStoreLike<RelativeURILike>; | ||
readonly locationStore: AsyncIteratorResourceLike< | ||
StateUpdaterLike<RelativeURILike>, | ||
RelativeURILike | ||
>; | ||
readonly notFound: React.ComponentType<RoutableComponentProps>; | ||
@@ -34,0 +37,0 @@ readonly routes: readonly [ |
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
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
588121
2.46%381
0.79%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated