Skip to content

Commit

Permalink
Merge pull request #23204 from storybookjs/chaks/react-storyfn-return…
Browse files Browse the repository at this point in the history
…type

React: Change `StoryFnReactReturnType` to `JSX.Element`
  • Loading branch information
ndelangen committed Nov 29, 2023
2 parents f998cc9 + 9c8084c commit ea2acac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/renderers/react/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { ComponentType, ReactElement } from 'react';
import type { ComponentType } from 'react';
import type { WebRenderer } from '@storybook/types';

export type { RenderContext } from '@storybook/types';
export type { StoryContext } from '@storybook/types';
export type { RenderContext, StoryContext } from '@storybook/types';

/**
* @deprecated Use `ReactRenderer` instead.
Expand All @@ -18,4 +17,4 @@ export interface ShowErrorArgs {
description: string;
}

export type StoryFnReactReturnType = ReactElement<unknown>;
export type StoryFnReactReturnType = JSX.Element;

0 comments on commit ea2acac

Please sign in to comment.