(value: Value)
| 1642 | * @since 3.10.0 |
| 1643 | */ |
| 1644 | export function ArrayEnsure<Value extends Schema.Any>(value: Value): ArrayEnsure<Value> { |
| 1645 | return transform(Union(value, Array$(value)), Array$(typeSchema(asSchema(value))), { |
| 1646 | strict: true, |
| 1647 | decode: (i) => array_.ensure(i), |
| 1648 | encode: (a) => a.length === 1 ? a[0] : a |
| 1649 | }) |
| 1650 | } |
| 1651 | |
| 1652 | /** |
| 1653 | * @category api interface |
nothing calls this directly
no test coverage detected
searching dependent graphs…