arktypea
arktype6mo ago
anbech.

Get values from type.enumerated?

const ValidationErrorCodes = type.enumerated(
  "INVALID_EMAIL",
  "MISSING_FIELD",
  "INVALID_FORMAT"
);


Is it possible to extract the values? e.g. so I can use them in say a foreach loop?
Was this page helpful?