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

526 B

Don't break signature of hugged function expression if parameters are identifiers without types (#13410 by @thorn0)

// 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} />;
  },
);