Set<T, Input = unknown>(item: Schema<T, unknown>): SetSchema<T, Input>
item: Schema<T, unknown>
import * as x from 'unhoax'const schema = x.Set(x.string)const result = schema.parse(new Set(['a', 'b']))result // { success: true, value: Set { 'a', 'b' } } Copy
import * as x from 'unhoax'const schema = x.Set(x.string)const result = schema.parse(new Set(['a', 'b']))result // { success: true, value: Set { 'a', 'b' } }
Example