Skip to content

Commit

Permalink
[Doc] Update inline documentation for next/link (#41871)
Browse files Browse the repository at this point in the history
## Addresses Issue #41807

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: Yomi Ikuru <abayomi.ikuru@gmail.com>
  • Loading branch information
abayomi185 and Yomi Ikuru committed Oct 27, 2022
1 parent 05d4c9e commit 0e25f8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/client/link.tsx
Expand Up @@ -78,23 +78,23 @@ type InternalLinkProps = {
locale?: string | false
/**
* Enable legacy link behaviour.
* @defaultValue `true`
* @defaultValue `false`
* @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7
*/
legacyBehavior?: boolean
// e: any because as it would otherwise overlap with existing types
/**
* requires experimental.newNextLinkBehavior
* Optional event handler for when the mouse pointer is moved onto Link
*/
onMouseEnter?: (e: any) => void
// e: any because as it would otherwise overlap with existing types
/**
* requires experimental.newNextLinkBehavior
* Optional event handler for when Link is touched.
*/
onTouchStart?: (e: any) => void
// e: any because as it would otherwise overlap with existing types
/**
* requires experimental.newNextLinkBehavior
* Optional event handler for when Link is clicked.
*/
onClick?: (e: any) => void
}
Expand Down

0 comments on commit 0e25f8c

Please sign in to comment.