fix: enforce type-safe value in setCellStyles#1028
Conversation
Previously, any value type could be passed for any style key without compile-time error, allowing bugs like passing a string for a boolean property. Using a generic constraint ensures the value type matches the key's declared type in CellStateStyle, catching mismatches at compile time.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |



Previously, any value type could be passed for any style key without
compile-time error, allowing bugs like passing a string for a boolean
property. Using a generic constraint ensures the value type matches the
key's declared type in CellStateStyle, catching mismatches at compile
time.
Tasks
Notes
Covers #840
Should be merged after #1026