Skip to content

Commit 49c20b4

Browse files
authored
Fix Theme import for newer Typescript module resolution modes (#3101)
1 parent 45c440f commit 49c20b4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/light-seals-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@emotion/react': patch
3+
---
4+
5+
Fix Theme import for newer Typescript module resolution modes

packages/react/types/css-prop.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {} from 'react'
22
import { Interpolation } from '@emotion/serialize'
3-
import { Theme } from '.'
3+
import { Theme } from '@emotion/react'
44

55
declare module 'react' {
66
interface Attributes {

packages/react/types/jsx-namespace.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'react'
22
import { Interpolation } from '@emotion/serialize'
3-
import { Theme } from './index'
3+
import { Theme } from '@emotion/react'
44

55
type WithConditionalCSSProp<P> = 'className' extends keyof P
66
? string extends P['className' & keyof P]

0 commit comments

Comments
 (0)