Skip to content

Commit

Permalink
Merge pull request #339 from boris-petrov/exactOptionalPropertyTypes
Browse files Browse the repository at this point in the history
Fix a type error when `exactOptionalPropertyTypes` is enabled
  • Loading branch information
wagenet committed Mar 19, 2024
2 parents 7f786cc + 0550206 commit 7b65768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router/route-info.ts
Expand Up @@ -224,7 +224,7 @@ export default class InternalRouteInfo<R extends Route> {
name: string;
params: Dict<unknown> | undefined = {};
queryParams?: Dict<unknown>;
context?: ModelFor<R> | PromiseLike<ModelFor<R>>;
context?: ModelFor<R> | PromiseLike<ModelFor<R>> | undefined;
isResolved = false;

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

0 comments on commit 7b65768

Please sign in to comment.