From ed674d727942e7219c7f413afa7d73ef23e298d2 Mon Sep 17 00:00:00 2001 From: AlbertGao Date: Sat, 19 Jan 2019 12:35:40 +1300 Subject: [PATCH] Replace type for props with unknown Otherwise, you need to pass a type T to `Options` first in order to get that type in `displayNameFunc`, which is overkill. --- types/storybook-addon-jsx/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/storybook-addon-jsx/index.d.ts b/types/storybook-addon-jsx/index.d.ts index 217a663fee..51ca6b1345 100644 --- a/types/storybook-addon-jsx/index.d.ts +++ b/types/storybook-addon-jsx/index.d.ts @@ -7,7 +7,7 @@ import '@storybook/react'; import { ReactNode, ReactElement } from 'react'; -type displayNameFunc = (element: ReactElement) => string; +type displayNameFunc = (element: ReactElement) => string; declare module '@storybook/react' { interface Options {