Skip to content

Commit

Permalink
Added export for SerializedStyles Flow type from @emotion/react (#…
Browse files Browse the repository at this point in the history
…2206)

* Export `SerializedStyles` from @emotion/react flow types

This will make it easier to properly type the return value of the `css` function in Flow.

* Update .changeset/sweet-seas-add.md

Co-authored-by: James Diefenderfer <james.diefenderfer@salesforce.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
3 people committed Jan 9, 2021
1 parent a89d425 commit 4d2e732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-seas-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@emotion/react': patch
---

Added export for `SerializedStyles` Flow type.
1 change: 1 addition & 0 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @flow
import pkg from '../package.json'
export type { SerializedStyles } from '@emotion/utils'
export { withEmotionCache, CacheProvider } from './context'
export { jsx } from './jsx'
export { jsx as createElement } from './jsx'
Expand Down

0 comments on commit 4d2e732

Please sign in to comment.