Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
refactor: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Jul 21, 2019
1 parent 43e895f commit e980e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useNavigationBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getRouteConfigsFromChildren = (children: React.ReactNode) =>

export default function useNavigationBuilder<
Options extends DefualtOptions = DefualtOptions
>(router: RouterHelper<any>, options: Options) {
>(router: RouterHelper<any, Options>, options: Options) {
const { current: currentRouter } = React.useRef<Router<any>>(
typeof router === 'function' ? router(options) : router
);
Expand Down

0 comments on commit e980e36

Please sign in to comment.