Skip to content

Commit

Permalink
Changed the registered parameter to be declared as optional in the …
Browse files Browse the repository at this point in the history
…signature of `serializeStyles` (#2572)

* fix(serialize): registered parameter of serializeStyles should be optional

* Create friendly-carrots-buy.md

* Fix typo

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
otakustay and Andarist committed May 18, 2022
1 parent 26e4e3e commit 5e81f21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-carrots-buy.md
@@ -0,0 +1,5 @@
---
"@emotion/serialize": patch
---

Changed the `registered` parameter to be declared as optional in the TypeScript definition to match the runtime requirement.
2 changes: 1 addition & 1 deletion packages/serialize/types/index.d.ts
Expand Up @@ -64,6 +64,6 @@ export type Interpolation<Props> =

export function serializeStyles<Props>(
args: Array<TemplateStringsArray | Interpolation<Props>>,
registered: RegisteredCache,
registered?: RegisteredCache,
props?: Props
): SerializedStyles

0 comments on commit 5e81f21

Please sign in to comment.