(value: Value)
| 8348 | * @since 3.10.0 |
| 8349 | */ |
| 8350 | export 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 |
no test coverage detected
searching dependent graphs…