From 73f7c056f38dd3a6fcaaceac3108e11baca9ab54 Mon Sep 17 00:00:00 2001 From: denster Date: Wed, 10 Jan 2018 16:34:40 +0300 Subject: [PATCH] Typescript definition update (#3320) 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 c2a76e17bb95a..70510e4f56f18 100644 --- a/packages/gatsby-link/index.d.ts +++ b/packages/gatsby-link/index.d.ts @@ -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 { } +export default class GatsbyLink extends React.Component { }