Skip to content

Commit e6005e7

Browse files
authored
Merge pull request #26 from nothugofsea/route-view-types
2 parents c91f9cc + ff82978 commit e6005e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/create-route-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function createRouteView<
1313
Props,
1414
Params extends RouteParams
1515
>(config: RouteViewConfig<Props, Params>) {
16-
return (props: Props & Omit<RouteViewConfig<Props, Params>, keyof Config>) => {
16+
return (props: Props & Omit<RouteViewConfig<Props, Params>, keyof typeof config>) => {
1717
const mergedConfig = { ...config, ...props } as RouteViewConfig<Props, Params>;
1818
const isOpened = useIsOpened(mergedConfig.route);
1919

0 commit comments

Comments
 (0)