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

Function makeNonEmptyArrayClass

packages/effect/src/Schema.ts:1612–1623  ·  view source on GitHub ↗
(
  value: Value,
  ast?: AST.AST
)

Source from the content-addressed store, hash-verified

1610}
1611
1612function makeNonEmptyArrayClass<Value extends Schema.Any>(
1613 value: Value,
1614 ast?: AST.AST
1615) {
1616 return class NonEmptyArrayClass extends makeTupleTypeClass<[Value], [Value]>([value], [value], ast) {
1617 static override annotations(annotations: Annotations.Schema<TupleType.Type<[Value], [Value]>>) {
1618 return makeNonEmptyArrayClass(this.value, mergeSchemaAnnotations(this.ast, annotations))
1619 }
1620
1621 static value = value
1622 }
1623}
1624
1625/**
1626 * @category constructors

Callers 2

annotationsMethod · 0.85
NonEmptyArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…