mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
added displayName property
Source code is here: https://github.com/storybooks/addon-jsx/blob/5e13544668fe84ae659139bfc25eecd79cb07998/src/index.js#L42 Repo Readme.md is here: https://github.com/storybooks/addon-jsx
This commit is contained in:
Vendored
+4
-1
@@ -5,13 +5,16 @@
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import '@storybook/react';
|
||||
import { ReactNode } from 'react';
|
||||
import { ReactNode, ReactElement } from 'react';
|
||||
|
||||
type displayNameFunc<T> = (element: ReactElement<T>) => string;
|
||||
|
||||
declare module '@storybook/react' {
|
||||
interface Options {
|
||||
skip?: number;
|
||||
enableBeautify?: boolean;
|
||||
onBeforeRender?: (domString: string) => string;
|
||||
displayName?: string | displayNameFunc;
|
||||
}
|
||||
|
||||
interface Story {
|
||||
|
||||
Reference in New Issue
Block a user