atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.99k stars 67 forks source link

Fix nested types output from createStrictAPI() being unintentionally marked as required #1604

Closed itsdouges closed 10 months ago

itsdouges commented 10 months ago

This pull request updates types and adds some tests for this specific use case.

changeset-bot[bot] commented 10 months ago

🦋 Changeset detected

Latest commit: a99f3f388849be76f093ea196588a7ed3b53e0ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ---------------------------- | ----- | | @compiled/babel-plugin | Patch | | @compiled/react | Patch | | @compiled/parcel-transformer | Patch | | @compiled/webpack-loader | Patch |

Not sure what this means? Click here to learn what changesets are.

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/atlassian-labs/compiled/new/fix-nested-strict-type?filename=.changeset/grumpy-roses-pretend.md&value=---%0A%22%40compiled%2Fbabel-plugin%22%3A%20patch%0A%22%40compiled%2Freact%22%3A%20patch%0A---%0A%0AFix%20nested%20types%20output%20from%20createStrictAPI()%20being%20unintentionally%20marked%20as%20required%0A)