diff --git a/src/masking/internal/types.ts b/src/masking/internal/types.ts index 7ddc54e6554..b844a8b702a 100644 --- a/src/masking/internal/types.ts +++ b/src/masking/internal/types.ts @@ -81,7 +81,9 @@ type MergeUnions = MergeUnionsAcc< type DistributedRequiredExclude = T extends any ? Required extends Required ? - never + Required extends Required ? + never + : T : T : T;