MCPcopy Index your code
hub / github.com/Effect-TS/effect / ChunkFromSelf

Function ChunkFromSelf

packages/effect/src/Schema.ts:8278–8293  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

8276 * @since 3.10.0
8277 */
8278export const ChunkFromSelf = <Value extends Schema.Any>(value: Value): ChunkFromSelf<Value> => {
8279 return declare(
8280 [value],
8281 {
8282 decode: (item) => chunkParse(ParseResult.decodeUnknown(Array$(item))),
8283 encode: (item) => chunkParse(ParseResult.encodeUnknown(Array$(item)))
8284 },
8285 {
8286 typeConstructor: { _tag: "effect/Chunk" },
8287 description: `Chunk<${format(value)}>`,
8288 pretty: chunkPretty,
8289 arbitrary: chunkArbitrary,
8290 equivalence: chunk_.getEquivalence
8291 }
8292 )
8293}
8294
8295/**
8296 * @category api interface

Callers 1

ChunkFunction · 0.70

Calls 4

declareInterface · 0.85
chunkParseFunction · 0.85
Array$Function · 0.70
formatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…