Skip to content

Commit

Permalink
Added missing TypeScript declarations in @emotion/server (#2835)
Browse files Browse the repository at this point in the history
* feat: update @emotion/server types to support all exported members

* chore: update changeset

* Update .changeset/silent-baboons-press.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
manishco and Andarist committed Jul 30, 2022
1 parent 2e6a7aa commit fa7f494
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-baboons-press.md
@@ -0,0 +1,5 @@
---
'@emotion/server': patch
---

Added missing TypeScript declarations for `extractCriticalToChunks` and `constructStyleTagsFromChunks` exports.
4 changes: 3 additions & 1 deletion packages/server/types/index.d.ts
Expand Up @@ -3,6 +3,8 @@

import { EmotionServer } from '@emotion/server/create-instance'

export const extractCritical: EmotionServer['extractCritical']
export const extractCriticalToChunks: EmotionServer['extractCriticalToChunks']
export const renderStylesToString: EmotionServer['renderStylesToString']
export const renderStylesToNodeStream: EmotionServer['renderStylesToNodeStream']
export const extractCritical: EmotionServer['extractCritical']
export const constructStyleTagsFromChunks: EmotionServer['constructStyleTagsFromChunks']

0 comments on commit fa7f494

Please sign in to comment.