79313086

Date: 2024-12-28 02:14:13
Score: 1.5
Natty:
Report link

OK I find an alternative solution.

I replace the optional by | undefined:

ReferentialEnum<{ color : string ; optional? : string }> 
ReferentialEnum<{ color : string ; optional : string | undefined }> 

I would have preferred to keep the :

ReferentialEnum<{ color : string ; optional? : string }> 

Playground

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kohai