File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import { Stream } from 'most' ;
22import { Pathname , Location } from '@cycle/history/lib/interfaces' ;
3- import { RouteDefinitions , SwitchPathReturn } from './lib/interfaces' ;
3+ import { RouteDefinitionsMap , RouteMatcherReturn } from './lib/interfaces' ;
44export interface RouterSource {
55 history$ : Stream < Location > ;
66 path ( pathname : Pathname ) : RouterSource ;
7- define ( routes : RouteDefinitions ) : Stream < SwitchPathReturn > ;
7+ define ( routes : RouteDefinitionsMap ) : Stream < RouteMatcherReturn > ;
88 createHref ( path : Pathname ) : Pathname ;
99}
Original file line number Diff line number Diff line change 11import { Observable } from 'rx' ;
22import { Pathname , Location } from '@cycle/history/lib/interfaces' ;
3- import { RouteDefinitions , SwitchPathReturn } from './lib/interfaces' ;
3+ import { RouteDefinitionsMap , RouteMatcherReturn } from './lib/interfaces' ;
44export interface RouterSource {
55 history$ : Observable < Location > ;
66 path ( pathname : Pathname ) : RouterSource ;
7- define ( routes : RouteDefinitions ) : Observable < SwitchPathReturn > ;
7+ define ( routes : RouteDefinitionsMap ) : Observable < RouteMatcherReturn > ;
88 createHref ( path : Pathname ) : Pathname ;
99}
Original file line number Diff line number Diff line change 11import { Observable } from 'rxjs' ;
22import { Pathname , Location } from '@cycle/history/lib/interfaces' ;
3- import { RouteDefinitions , SwitchPathReturn } from './lib/interfaces' ;
3+ import { RouteDefinitionsMap , RouteMatcherReturn } from './lib/interfaces' ;
44export interface RouterSource {
55 history$ : Observable < Location > ;
66 path ( pathname : Pathname ) : RouterSource ;
7- define ( routes : RouteDefinitions ) : Observable < SwitchPathReturn > ;
7+ define ( routes : RouteDefinitionsMap ) : Observable < RouteMatcherReturn > ;
88 createHref ( path : Pathname ) : Pathname ;
99}
Original file line number Diff line number Diff line change 11import { Stream } from 'xstream' ;
22import { Pathname } from '@cycle/history/lib/interfaces' ;
3- import { RouteDefinitions , SwitchPathReturn } from './lib/interfaces' ;
3+ import { RouteDefinitionsMap , RouteMatcherReturn } from './lib/interfaces' ;
44export interface RouterSource {
55 history$ : Stream < Location > ;
66 path ( pathname : Pathname ) : RouterSource ;
7- define ( routes : RouteDefinitions ) : Stream < SwitchPathReturn > ;
7+ define ( routes : RouteDefinitionsMap ) : Stream < RouteMatcherReturn > ;
88 createHref ( path : Pathname ) : Pathname ;
99}
You can’t perform that action at this time.
0 commit comments