mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
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:
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user