File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
1616 RouterType ,
1717} from './router.types.js' ;
1818
19- export class Router < THistory extends AnyHistory > implements IRouter < THistory > {
19+ export class Router < THistory extends AnyHistory = AnyHistory > implements IRouter < THistory > {
2020 history : THistory ;
2121 location : THistory [ 'location' ] ;
2222 queryParams : IQueryParams ;
Original file line number Diff line number Diff line change 11import { AnyHistory , IQueryParams } from 'mobx-location-history' ;
22
3- export interface IRouter < THistory extends AnyHistory > {
3+ export interface IRouter < THistory extends AnyHistory = AnyHistory > {
44 history : THistory ;
55 location : THistory [ 'location' ] ;
66 queryParams : IQueryParams ;
@@ -64,7 +64,7 @@ export type RouterToConfig =
6464
6565export type RouterType = 'browser' | 'hash' ;
6666
67- export interface RouterConfig < THistory extends AnyHistory > {
67+ export interface RouterConfig < THistory extends AnyHistory = AnyHistory > {
6868 history ?: THistory ;
6969 location ?: THistory [ 'location' ] ;
7070 queryParams ?: IQueryParams ;
You can’t perform that action at this time.
0 commit comments