Skip to content

Commit

Permalink
fix(types): navigate doesn't return anything (#38590)
Browse files Browse the repository at this point in the history
  • Loading branch information
RJWadley authored Jan 3, 2024
1 parent f8ce66e commit 6cb6ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-link/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Link<TState> extends React.Component<
* Sometimes you need to navigate to pages programmatically, such as during form submissions. In these
* cases, `Link` won’t work.
*/
export const navigate: NavigateFn
export const navigate: (...args: Parameters<NavigateFn>) => void;

/**
* It is common to host sites in a sub-directory of a site. Gatsby lets you set the path prefix for your site.
Expand Down

0 comments on commit 6cb6ffb

Please sign in to comment.