Optional property with const string array
Hello, the following 
 is giving a  error. It's not really clear to me why - I assume the 
=== operator is doing more than what I think. 
Is there a way to have an optional property be one of a string array in arktype? Or is what I'm after effectively indexed access expressions? ThanksGitHub
Issues · arktypeio/arktype
TypeScript's 1:1 validator, optimized from editor to runtime - Issues · arktypeio/arktype
3 Replies
What if you do this?
Yeah this error is actually just due to a quirk in how some previous versions resolved nested type calls. Updating to the 
2.0.0-rc.3 or doing what @PIat suggests will resolve the issue
I'd recommend @PIat's suggest as more canonical to avoid nesting type calls where possible
Or you can just define the literal union separately then reference itOh nice, I didn’t know that was an option. Thank you for the replies