From 32632f587eb7ed10e2baa87aed28f641aa9a0297 Mon Sep 17 00:00:00 2001 From: denster Date: Sat, 23 Dec 2017 13:39:18 +0300 Subject: [PATCH] Typescript definition update Updates to pass typescript compiler(tsc) type checks, given the Gatsby's default layout in src/layouts/index.js. --- packages/gatsby-link/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-link/index.d.ts b/packages/gatsby-link/index.d.ts index 039dc625bd465..1606a01802d9c 100644 --- a/packages/gatsby-link/index.d.ts +++ b/packages/gatsby-link/index.d.ts @@ -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 { } +export default class GatsbyLink extends React.Component { }