Skip to contents

Strings are represented in Zod schema as either a string (z.string()), or a string array (z.array(z.string())).

Usage

ts_character(n = -1L)

Arguments

n

The length of the string vector. If n = 1 then a single string is expected. If n = 0 then any length is expected. If n > 1 then a string vector of length n is expected.

Value

A ts object that accepts strings or string vectors of length n.