Unfortunately, TS doesn't support conditional operators, so it's not possible to concatenate a few expressions with &&. The only way I know is to extract each ternary operator into a dedicated type, similar to how it is done with FieldWithPossiblyUndefined and IndexedFieldWithPossiblyUndefined. But to my mind, it adds even more boilerplate.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Unfortunately, TS doesn't support conditional operators, so it's not possible to concatenate a few expressions with
&&
. The only way I know is to extract each ternary operator into a dedicated type, similar to how it is done withFieldWithPossiblyUndefined
andIndexedFieldWithPossiblyUndefined
. But to my mind, it adds even more boilerplate.