Commit f8f90955 authored by Tim Neutkens's avatar Tim Neutkens Committed by Arunoda Susiripala

Add prefetch to propTypes + flow typings (#1295)

parent 8399ea70
......@@ -17,7 +17,7 @@ declare module "next/head" {
}
declare module "next/link" {
declare module.exports: Class<React$Component<void, {href: string}, any>>;
declare module.exports: Class<React$Component<void, {href: string, prefetch?: bool}, any>>;
}
declare module "next/error" {
......
......@@ -10,6 +10,7 @@ export default class Link extends Component {
}
static propTypes = {
prefetch: PropTypes.bool,
children: PropTypes.oneOfType([
PropTypes.element,
(props, propName) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment