From 80f59b24c62bcfde171d49eaaefa9d72210e9e06 Mon Sep 17 00:00:00 2001 From: Tom Crockett Date: Thu, 31 May 2018 00:25:13 -0700 Subject: [PATCH] Mouse event is not required --- types/storybook__addon-links/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/storybook__addon-links/index.d.ts b/types/storybook__addon-links/index.d.ts index 72ec6aa296..b52668aed2 100644 --- a/types/storybook__addon-links/index.d.ts +++ b/types/storybook__addon-links/index.d.ts @@ -9,6 +9,9 @@ import * as React from 'react'; export type LinkToFunction = (...args: any[]) => string; -export function linkTo(book: string | LinkToFunction, kind?: string | LinkToFunction): React.MouseEventHandler; +export function linkTo( + book: string | LinkToFunction, + kind?: string | LinkToFunction +): (event?: React.MouseEvent) => void; export function hrefTo(kind: string, story: string): Promise;