Skip to content

Commit

Permalink
Merge pull request #26 from nothugofsea/route-view-types
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova authored Dec 19, 2023
2 parents c91f9cc + ff82978 commit e6005e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create-route-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function createRouteView<
Props,
Params extends RouteParams
>(config: RouteViewConfig<Props, Params>) {
return (props: Props & Omit<RouteViewConfig<Props, Params>, keyof Config>) => {
return (props: Props & Omit<RouteViewConfig<Props, Params>, keyof typeof config>) => {
const mergedConfig = { ...config, ...props } as RouteViewConfig<Props, Params>;
const isOpened = useIsOpened(mergedConfig.route);

Expand Down

0 comments on commit e6005e7

Please sign in to comment.