Skip to content

Commit 160998f

Browse files
committed
fix typescript error causing real problem in the JS
1 parent a9bba4e commit 160998f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/router_js/lib/route-info.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ export default class InternalRouteInfo<R extends Route> {
218218
private _routePromise?: Promise<R> = undefined;
219219
private _route?: Option<R> = null;
220220
protected router: Router<R>;
221-
paramNames: string[];
222-
name: string;
221+
declare paramNames: string[];
222+
declare name: string;
223223
params: Dict<unknown> | undefined = {};
224-
queryParams?: Dict<unknown>;
225-
context?: ModelFor<R> | PromiseLike<ModelFor<R>> | undefined;
224+
declare queryParams?: Dict<unknown>;
225+
declare context?: ModelFor<R> | PromiseLike<ModelFor<R>> | undefined;
226226
isResolved = false;
227227

228228
constructor(router: Router<R>, name: string, paramNames: string[], route?: R) {

0 commit comments

Comments
 (0)