Skip to content

Commit

Permalink
Fix Theme import for newer Typescript module resolution modes (#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyvong authored Dec 23, 2023
1 parent 45c440f commit 49c20b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-seals-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@emotion/react': patch
---

Fix Theme import for newer Typescript module resolution modes
2 changes: 1 addition & 1 deletion packages/react/types/css-prop.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {} from 'react'
import { Interpolation } from '@emotion/serialize'
import { Theme } from '.'
import { Theme } from '@emotion/react'

declare module 'react' {
interface Attributes {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/types/jsx-namespace.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'react'
import { Interpolation } from '@emotion/serialize'
import { Theme } from './index'
import { Theme } from '@emotion/react'

type WithConditionalCSSProp<P> = 'className' extends keyof P
? string extends P['className' & keyof P]
Expand Down

0 comments on commit 49c20b4

Please sign in to comment.