Search


Search something to see results

Set

Type Parameters

  • T
  • Input = unknown

Parameters

Returns Schema<Set<T>, unknown>

import { x } from 'unhoax'

x.Set(x.string).parse(new Set(['a', 'b']))
// { success: true, value: Set { 'a', 'b' } }

x.Set(x.string).parse(['a', 'b'])
// { success: true, value: Set { 'a', 'b' } }