Skip to content

Commit

Permalink
fix gatsby link typescript definition (#2224)
Browse files Browse the repository at this point in the history
GatsbyLink uses NavLink, so NavLink props are available as well
  • Loading branch information
iv-mexx authored and KyleAMathews committed Sep 25, 2017
1 parent 3d05848 commit d674daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-link/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from "react";
import { NavLinkProps } from "react-router-dom";

export interface GatsbyLinkProps {
export interface GatsbyLinkProps extends NavLinkProps {
to: string;
onClick?: (event: any) => void
}
Expand Down

0 comments on commit d674daa

Please sign in to comment.