Search


Search something to see results

array

Type Parameters

  • T
  • Input = unknown

Parameters

Returns ArraySchema<T, Input>

import * as x from 'unhoax'

const schema = x.array(x.string)
const result = schema.parse(['a', 'b'])