Skip to content

Commit

Permalink
Merge pull request #12072 from storybookjs/12056-fix-csf-component-type
Browse files Browse the repository at this point in the history
React: Fix CSF component typing
  • Loading branch information
shilman committed Aug 17, 2020
2 parents eeeb4d8 + 3ab0d2f commit 5898887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/react/src/client/preview/types-6-0.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component, FunctionComponent } from 'react';
import { ComponentClass, FunctionComponent } from 'react';
import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
import { StoryFnReactReturnType } from './types';

export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';

type ReactComponent = Component | FunctionComponent<any>;
type ReactComponent = ComponentClass<any> | FunctionComponent<any>;
type ReactReturnType = StoryFnReactReturnType;

/**
Expand Down

0 comments on commit 5898887

Please sign in to comment.