79489764

Date: 2025-03-06 15:04:48
Score: 1.5
Natty:
Report link

Yes, you can achieve this using as const to preserve the literal type of fields:

const user = { fields: ["name"] as const };
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Krishna Dhoot