MCPcopy
hub / github.com/Effect-TS/effect / NonEmptyChunkFromSelf

Function NonEmptyChunkFromSelf

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

Source from the content-addressed store, hash-verified

8348 * @since 3.10.0
8349 */
8350export const NonEmptyChunkFromSelf = <Value extends Schema.Any>(value: Value): NonEmptyChunkFromSelf<Value> => {
8351 return declare(
8352 [value],
8353 {
8354 decode: (item) => nonEmptyChunkParse(ParseResult.decodeUnknown(NonEmptyArray(item))),
8355 encode: (item) => nonEmptyChunkParse(ParseResult.encodeUnknown(NonEmptyArray(item)))
8356 },
8357 {
8358 typeConstructor: { _tag: "effect/Chunk.NonEmptyChunk" },
8359 description: `NonEmptyChunk<${format(value)}>`,
8360 pretty: nonEmptyChunkPretty,
8361 arbitrary: nonEmptyChunkArbitrary,
8362 equivalence: chunk_.getEquivalence
8363 }
8364 )
8365}
8366
8367/**
8368 * @category api interface

Callers 1

NonEmptyChunkFunction · 0.70

Calls 4

declareInterface · 0.85
nonEmptyChunkParseFunction · 0.85
NonEmptyArrayFunction · 0.70
formatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…