(codec: S)
| 616 | } |
| 617 | |
| 618 | const toArrayCodec = <S extends Schema.Constraint>(codec: S): Schema.NonEmptyArray<S> => { |
| 619 | let array = arrayCodecs.get(codec) |
| 620 | if (array === undefined) { |
| 621 | array = Schema.NonEmptyArray(codec) |
| 622 | arrayCodecs.set(codec, array) |
| 623 | } |
| 624 | return array as Schema.NonEmptyArray<S> |
| 625 | } |
| 626 | |
| 627 | // CSV cannot tell an empty cell from a missing one, so empty cells of optional |
| 628 | // properties are decoded as missing keys. Each union member gets its own copy of |
no test coverage detected