Skip to content

Commit

Permalink
Typescript definition update (#3320)
Browse files Browse the repository at this point in the history
Updates to pass typescript compiler(tsc) type checks, given the Gatsby's default layout in src/layouts/index.js.
  • Loading branch information
denster authored and KyleAMathews committed Jan 10, 2018
1 parent 882cc99 commit 73f7c05
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
Expand Up @@ -4,10 +4,11 @@ import { NavLinkProps } from "react-router-dom";
export interface GatsbyLinkProps extends NavLinkProps {
onClick?: (event: any) => void
className?: string
style?:any;
}

export const navigateTo: (path: string) => void;

export const withPrefix: (path: string) => string;

export default class GatsbyLink extends React.Component<GatsbyLinkProps> { }
export default class GatsbyLink extends React.Component<GatsbyLinkProps, any> { }

0 comments on commit 73f7c05

Please sign in to comment.