Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

fix: Remove deep import StoryFnReactReturnType from @storybook/react #20

Merged
merged 1 commit into from
May 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"analyze": "size-limit --why",
"release": "yarn build && auto shipit"
},
"peerDependencies": {},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ArgTypes, Parameters, BaseDecorators } from '@storybook/addons';
import type { Story } from '@storybook/react';
import { StoryFnReactReturnType } from '@storybook/react/dist/client/preview/types';
import { ReactElement } from 'react';

type StoryFnReactReturnType = ReactElement<unknown>;

/**
* Object representing the preview.ts module
Expand Down