Search


Search something to see results

Set

Type Parameters

  • T
  • Input = unknown

Parameters

Returns SetSchema<T, Input>

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' } }