(value: Value)
| 8305 | * @since 3.10.0 |
| 8306 | */ |
| 8307 | export function Chunk<Value extends Schema.Any>(value: Value): Chunk<Value> { |
| 8308 | return transform( |
| 8309 | Array$(value), |
| 8310 | ChunkFromSelf(typeSchema(asSchema(value))), |
| 8311 | { |
| 8312 | strict: true, |
| 8313 | decode: (i) => i.length === 0 ? chunk_.empty() : chunk_.fromIterable(i), |
| 8314 | encode: (a) => chunk_.toReadonlyArray(a) |
| 8315 | } |
| 8316 | ) |
| 8317 | } |
| 8318 | |
| 8319 | /** |
| 8320 | * @category api interface |
nothing calls this directly
no test coverage detected
searching dependent graphs…