Skip to content

Commit

Permalink
Export Keyframes type from @emotion/core (#2576)
Browse files Browse the repository at this point in the history
* Export Keyframes type from @emotion/core

* Create quiet-impalas-speak.md

* Update quiet-impalas-speak.md

* Update quiet-impalas-speak.md

* Update .changeset/quiet-impalas-speak.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
Methuselah96 and Andarist committed Dec 8, 2021
1 parent b61b1c2 commit 33c0157
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-impalas-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@emotion/core": 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.
2 changes: 1 addition & 1 deletion packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export {
ObjectInterpolation
} from '@emotion/css'

export { EmotionCache, Interpolation, SerializedStyles, css }
export { EmotionCache, Interpolation, Keyframes, SerializedStyles, css }

export const ThemeContext: Context<object>
export const CacheProvider: Provider<EmotionCache>
Expand Down

0 comments on commit 33c0157

Please sign in to comment.