diff --git a/.changeset/old-chefs-repeat.md b/.changeset/old-chefs-repeat.md new file mode 100644 index 000000000..7ad85a8f4 --- /dev/null +++ b/.changeset/old-chefs-repeat.md @@ -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. diff --git a/packages/react/types/index.d.ts b/packages/react/types/index.d.ts index 0f3575333..07f8468be 100644 --- a/packages/react/types/index.d.ts +++ b/packages/react/types/index.d.ts @@ -31,6 +31,7 @@ export { EmotionCache, FunctionInterpolation, Interpolation, + Keyframes, SerializedStyles }