ibrahimyaacobI
Convex Community2y ago
2 replies
ibrahimyaacob

how to turn v.union literals into array

basically i want this object
export const status = v.union(
  v.literal("in-progress"),
  v.literal("completed"),
  v.literal("aborted")
);

to turn into

const statusList = ["in-progress","completed", "aborted"]


in the most efficient ways
Was this page helpful?