mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Update index.d.ts (#18479)
This commit is contained in:
2
types/storybook__react/index.d.ts
vendored
2
types/storybook__react/index.d.ts
vendored
@@ -8,7 +8,7 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
export type Renderable = React.StatelessComponent<any> | React.Component<any> | JSX.Element;
|
||||
export type Renderable = React.StatelessComponent<any> | React.ComponentClass<any> | JSX.Element;
|
||||
export type RenderFunction = () => Renderable;
|
||||
|
||||
export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null;
|
||||
|
||||
Reference in New Issue
Block a user