Closed nmn closed 7 months ago
The typescript type definitions for StyleXStyles and StaticStyles did not accept undefined but they did accept null. This was an oversight, and has been fixed in this PR.
StyleXStyles
StaticStyles
undefined
null
Fixes #417
A type test has been added to verify the fix.
compressed-size: runtime library
Size change: 0.00 kB Total size: 2.52 kB
compressed-size: e2e bundles
Size change: 0.00 kB Total size: 1128.55 kB
What changed / motivation ?
The typescript type definitions for
StyleXStyles
andStaticStyles
did not acceptundefined
but they did acceptnull
. This was an oversight, and has been fixed in this PR.Linked PR/Issues
Fixes #417
Additional Context
A type test has been added to verify the fix.