Closed kylorhall-atlassian closed 6 months ago
Latest commit: f1fe7766f3a1c534373fd5d6ec6336ebe5ff459b
The changes in this PR will be included in the next version bump.
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
[example for @itsdouges to review into https://github.com/atlassian-labs/compiled/pull/1636]
We don't actually need the generic value for this to be valuable, this should block it so an
@compiled/react.cssMap
with conflicting values is disallowed, but also can allow prop-level restrictions (if we want).This is by moving
CompiledPropertyDeclarationReference
to not be optional as that object seemingly messed something up as| CompiledPropertyDeclarationReference
was always "truthy" (if that makes sense).However, this removes the functionality for inline
xcss
and requires acssMap
or futurecss
(?) to exist..which is probably fine.This has one remaining scenario not erroring (if I fixed the other inline
xcss={{ … }}
object tests), but it does error somewhere in the stack, and this is because a cssMap-level type error is typed differently than a non-erroring cssMap?