Skip to content

Commit 08f9db4

Browse files
wmaurerTylorS
authored andcommitted
fix(typings): update typings to use RouteDefinitionsMap and RouteMatcherReturn (#141)
1 parent 68c8fe8 commit 08f9db4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

most-typings.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Stream} from 'most';
22
import {Pathname, Location} from '@cycle/history/lib/interfaces';
3-
import {RouteDefinitions, SwitchPathReturn} from './lib/interfaces';
3+
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export 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
}

rx-typings.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Observable} from 'rx';
22
import {Pathname, Location} from '@cycle/history/lib/interfaces';
3-
import {RouteDefinitions, SwitchPathReturn} from './lib/interfaces';
3+
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export 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
}

rxjs-typings.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Observable} from 'rxjs';
22
import {Pathname, Location} from '@cycle/history/lib/interfaces';
3-
import {RouteDefinitions, SwitchPathReturn} from './lib/interfaces';
3+
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export 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
}

xstream-typings.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Stream} from 'xstream';
22
import {Pathname} from '@cycle/history/lib/interfaces';
3-
import {RouteDefinitions, SwitchPathReturn} from './lib/interfaces';
3+
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export 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
}

0 commit comments

Comments
 (0)