Skip to content

Commit 04681a5

Browse files
Export Keyframes type from @emotion/react (#2577)
* Export Keyframes type from @emotion/core * Create old-chefs-repeat.md * Update old-chefs-repeat.md * Update old-chefs-repeat.md * Update .changeset/old-chefs-repeat.md Co-authored-by: Mateusz Burzyński <[email protected]>
1 parent 26ded61 commit 04681a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/old-chefs-repeat.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+
Export `Keyframes` type to avoid TypeScript inserting `import("@emotion/serialize").Keyframes` references into declaration files emitted based on a source files exporting `keyframes` result. This avoids issues with strict package managers that don't allow accessing undeclared dependencies.

packages/react/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export {
3131
EmotionCache,
3232
FunctionInterpolation,
3333
Interpolation,
34+
Keyframes,
3435
SerializedStyles
3536
}
3637

0 commit comments

Comments
 (0)