Skip to content

Commit

Permalink
Merge pull request #23967 from abu-osos/iabu94/23961
Browse files Browse the repository at this point in the history
Types: Fix `React.ReactElement` not found
  • Loading branch information
ndelangen authored Aug 28, 2023
2 parents d5ca2f4 + 8ceec7d commit 29bc724
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/lib/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@storybook/channels": "workspace:*",
"@types/babel__core": "^7.0.0",
"@types/express": "^4.7.0",
"@types/react": "^16.14.34",
"file-system-cache": "2.3.0"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion code/lib/types/src/modules/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */

import type { ReactElement } from 'react';
import type { RenderData } from '../../../router/src/types';
import type { Channel } from '../../../channels/src';
import type { ThemeVars } from '../../../theming/src/types';
Expand Down Expand Up @@ -74,7 +75,7 @@ export type API_IframeRenderer = (
baseUrl: string,
scale: number,
queryParams: Record<string, any>
) => React.ReactElement<any, any> | null;
) => ReactElement<any, any> | null;

export interface API_UIOptions {
name?: string;
Expand Down
1 change: 1 addition & 0 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8037,6 +8037,7 @@ __metadata:
"@types/babel__core": ^7.0.0
"@types/express": ^4.7.0
"@types/node": ^16.0.0
"@types/react": ^16.14.34
file-system-cache: 2.3.0
typescript: ~4.9.3
languageName: unknown
Expand Down

0 comments on commit 29bc724

Please sign in to comment.