Skip to content

Commit 3ad469b

Browse files
densterjastack
authored andcommitted
Typescript definition update (gatsbyjs#3320)
Updates to pass typescript compiler(tsc) type checks, given the Gatsby's default layout in src/layouts/index.js.
1 parent 4a2e93e commit 3ad469b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby-link/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import { NavLinkProps } from "react-router-dom";
44
export interface GatsbyLinkProps extends NavLinkProps {
55
onClick?: (event: any) => void
66
className?: string
7+
style?:any;
78
}
89

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

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

13-
export default class GatsbyLink extends React.Component<GatsbyLinkProps> { }
14+
export default class GatsbyLink extends React.Component<GatsbyLinkProps, any> { }

0 commit comments

Comments
 (0)