Files
test-repo/changelog_unreleased/javascript/13410.md
T

20 lines
526 B
Markdown

#### Don't break signature of hugged function expression if parameters are identifiers without types (#13410 by @thorn0)
<!-- prettier-ignore -->
```tsx
// Prettier stable
export const Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
props,
ref
) {
return <ThemeUILink ref={ref} variant="default" {...props} />;
});
// Prettier main
export const Link = forwardRef<HTMLAnchorElement, LinkProps>(
function Link(props, ref) {
return <ThemeUILink ref={ref} variant="default" {...props} />;
},
);
```