Dawei
Aarktype
•Created by Dawei on 3/15/2025 in #questions
how to do an union of dynamic literals ?
in valibot I use :
const accessList = ["public", "premium"] as const;
const accessSchema = v.picklist(accessList);
in arktype I have to repeat the values ?
const accessList = ["public", "premium"] as const;
const accessSchema = type("'public' | 'premium'");
7 replies