papy0977
papy0977
Aarktype
Created by papy0977 on 1/20/2025 in #questions
Hi,
new to arktype, i have two questions: 1. i can't add a default for array ? like : foo:"string[]=['bar']" 2. given a type with all it's default can i create a concrete object from this type with all the default like: const foo=type({bar:"number.integer=42"}) and get back const defObj={bar: 42}
4 replies