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:
AlbertGao
2019-01-19 11:39:33 +13:00
committed by GitHub
parent 058a71bba2
commit 16403c957a
+4 -1
View File
@@ -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 {