Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 246c77b

Browse filesBrowse files
YuriScarbaciEvan Jacobs
andauthored
fix: typescipt TS4023 for ExoticComponentWithDisplayName (#5555)
* fix: typescipt TS4023 for ExoticComponentWithDisplayName * fix prettier warning * add changeset --------- Co-authored-by: Evan Jacobs <x@quantizor.dev>
1 parent 4757191 commit 246c77b
Copy full SHA for 246c77b

2 files changed

+7-1Lines changed: 7 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.changeset/kind-shoes-stare.md‎

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'styled-components': patch
3+
---
4+
5+
Resolve TS error related to `ExoticComponentWithDisplayName` API from React.
Collapse file

‎packages/styled-components/src/types.ts‎

Copy file name to clipboardExpand all lines: packages/styled-components/src/types.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import type { SupportedHTMLElements } from './utils/domElements';
77

88
export { CSS, DefaultTheme, SupportedHTMLElements };
99

10-
interface ExoticComponentWithDisplayName<P extends object = {}> extends React.ExoticComponent<P> {
10+
export interface ExoticComponentWithDisplayName<P extends object = {}>
11+
extends React.ExoticComponent<P> {
1112
defaultProps?: Partial<P> | undefined;
1213
displayName?: string | undefined;
1314
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.