Skip to contents

Create a union of types. Currently this only accepts schemas as strings.

Usage

ts_union(...)

Arguments

...

Zod types to merge (as strings)

Examples

x <- ts_union("z.number()", "z.string()")