Search


Search something to see results

Set

Type Parameters

  • T

Parameters

Returns SetSchema<T>

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