Skip to content

Commit

Permalink
Typescript definition update (gatsbyjs#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 jastack committed Jan 24, 2018
1 parent 4a2e93e commit 3ad469b
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 3ad469b

Please sign in to comment.