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.
This commit is contained in:
AlbertGao
2019-01-19 12:35:40 +13:00
committed by GitHub
parent 16403c957a
commit ed674d7279
+1 -1
View File
@@ -7,7 +7,7 @@
import '@storybook/react';
import { ReactNode, ReactElement } from 'react';
type displayNameFunc<T> = (element: ReactElement<T>) => string;
type displayNameFunc = (element: ReactElement<any>) => string;
declare module '@storybook/react' {
interface Options {