Skip to content

Commit

Permalink
Typescript definition update
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 Dec 23, 2017
1 parent ecfc048 commit 32632f5
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 @@ -5,10 +5,11 @@ export interface GatsbyLinkProps extends NavLinkProps {
to: string;
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 32632f5

Please sign in to comment.