You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ilia-kebets-sonarsource
changed the title
Fix FP S4323: for optional primitive type
Fix FP S4323 (use-type-alias): for optional primitive type
Jan 25, 2024
I would propose to generalize the exception to any kind of nullable type, that is, T | null | undefined where T can be anything. I don't think it makes sense to restrict ourselves to primitive types only.
yassin-kammoun-sonarsource
changed the title
Fix FP S4323 (use-type-alias): for optional primitive type
Fix FP S4323 (use-type-alias): Ignore nullable types
Jan 31, 2024
Add exception when the union is:
<primitive-type> | null | undefined
.Examples:
The text was updated successfully, but these errors were encountered: