Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update @emotion/server types to support all exported members #2835

Merged
merged 3 commits into from Jul 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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']