Skip to content

Commit

Permalink
fix(types): better type for navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 9, 2020
1 parent 7e08a66 commit 0384cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RouterLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function useLink(props: UseLinkOptions) {
isSameRouteLocationParams(currentRoute.params, route.value.params)
)

function navigate(e: MouseEvent = {} as MouseEvent): Promise<any> {
function navigate(e: MouseEvent = {} as MouseEvent) {
if (guardEvent(e))
return router[unref(props.replace) ? 'replace' : 'push'](unref(props.to))
return Promise.resolve()
Expand Down

0 comments on commit 0384cb0

Please sign in to comment.