Skip to content

Commit 7b65768

Browse files
authored
Merge pull request #339 from boris-petrov/exactOptionalPropertyTypes
Fix a type error when `exactOptionalPropertyTypes` is enabled
2 parents 7f786cc + 0550206 commit 7b65768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/router/route-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default class InternalRouteInfo<R extends Route> {
224224
name: string;
225225
params: Dict<unknown> | undefined = {};
226226
queryParams?: Dict<unknown>;
227-
context?: ModelFor<R> | PromiseLike<ModelFor<R>>;
227+
context?: ModelFor<R> | PromiseLike<ModelFor<R>> | undefined;
228228
isResolved = false;
229229

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

0 commit comments

Comments
 (0)