Skip to content

Commit

Permalink
base route instead of never
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasloisp committed May 23, 2024
1 parent d0bc9c7 commit 232fd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ export type ParamListRoute<ParamList extends ParamListBase> = {
[RouteName in keyof ParamList]: NavigatorScreenParams<{}> extends ParamList[RouteName]
? NotUndefined<ParamList[RouteName]> extends NavigatorScreenParams<infer T>
? ParamListRoute<T>
: never
: Route<Extract<RouteName, string>, ParamList[RouteName]>
: Route<Extract<RouteName, string>, ParamList[RouteName]>;
}[keyof ParamList];

Expand Down

0 comments on commit 232fd5b

Please sign in to comment.