Skip to content

Commit

Permalink
Export Keyframes type from @emotion/react (#2577)
Browse files Browse the repository at this point in the history
* 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 <mateuszburzynski@gmail.com>
  • Loading branch information
Methuselah96 and Andarist authored Dec 8, 2021
1 parent 26ded61 commit 04681a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-chefs-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@emotion/react": patch
---

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.
1 change: 1 addition & 0 deletions packages/react/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
EmotionCache,
FunctionInterpolation,
Interpolation,
Keyframes,
SerializedStyles
}

Expand Down

0 comments on commit 04681a5

Please sign in to comment.