-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the issue
I recently updated from RSD 0.33 to 0.55 and started encountering this error.
Returning undefined for a property in an inline style function now causes this error. I believe these values were previously ignored / stripped by RSD.
Expected behavior
If this is an intentional change, I would expect the typescript types for this function to disallow undefined values.
Steps to reproduce
const styles = css.create({
gap: (gap?: number) => ({
rowGap: gap, // An undefined gap will result in styleq: rowGap-abcdef typeof undefined is not "string" or "null".
}),
})
Test case
No response
Additional comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working