MCPcopy Create free account
hub / github.com/Effect-TS/effect / chunkLink

Function chunkLink

packages/effect/src/Schema.ts:11396–11404  ·  view source on GitHub ↗
(values: Schema<ReadonlyArray<Value>>)

Source from the content-addressed store, hash-verified

11394// -----------------------------------------------------------------------------
11395
11396function chunkLink<Value>(values: Schema<ReadonlyArray<Value>>) {
11397 return link<Chunk_.Chunk<Value>>()(
11398 values,
11399 SchemaTransformation.transform({
11400 decode: Chunk_.fromArrayUnsafe,
11401 encode: Arr.fromIterable
11402 })
11403 )
11404}
11405/**
11406 * Type-level representation returned by {@link Chunk}.
11407 *

Callers 1

ChunkFunction · 0.85

Calls 2

linkFunction · 0.70
transformMethod · 0.65

Tested by

no test coverage detected