rsnext/test/integration/typescript
Olivier Tassinari 71f9288a54 Fix onError prop-type warning in Link (#8021)
The warning

> Warning: Failed prop type: Link: unknown props found: onError

can happen in this case:

```tsx
import * as React from 'react';
import NextLink, { LinkProps as NextLinkProps } from 'next/link';

type NextComposedProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & NextLinkProps;

const NextComposed = React.forwardRef<HTMLAnchorElement, NextComposedProps>((props, ref) => {
  const { as, href, replace, scroll, passHref, shallow, prefetch, onError, ...other } = props;

  return (
    <NextLink
      href={href}
      prefetch={prefetch}
      as={as}
      replace={replace}
      scroll={scroll}
      shallow={shallow}
      passHref={passHref}
      onError={onError}
    >
      <a ref={ref} {...other} />
    </NextLink>
  );
});
```

*Taken from Material-UI Next.js integration example*
2019-07-25 18:52:27 +00:00
..
components Fix onError prop-type warning in Link (#8021) 2019-07-25 18:52:27 +00:00
pages Make tests for both async and sync GIP (#7999) 2019-07-16 09:43:23 -07:00
test Make tests for both async and sync GIP (#7999) 2019-07-16 09:43:23 -07:00
next.config.js Integrate type checking into compilation pipeline (#7278) 2019-05-07 20:11:56 -05:00
tsconfig.json Improve exported router types (#7853) 2019-07-11 13:35:39 -04:00