arktypea
arktype7mo ago
Tom

default value for array

Is it possible to set the default value for an array to an empty array?
I'm trying to do something like this:
const Thing = type({
    array: "number.integer[] = []",
})
But I get Default value '[]' must a literal value`
Was this page helpful?