ElementA positional element within an Arrays tuple.
Details
isOptional indicates whether this element can be absent. type is the
schema representation for this element's value.
modelsArrays
Source effect/SchemaRepresentation.ts:3525 lines
export interface Element {
readonly Element.isOptional: booleanisOptional: boolean
readonly Element.type: Representationtype: type Representation =
| Declaration
| Reference
| Suspend
| Null
| Undefined
| Void
| Never
| Unknown
| Any
| String
| Number
| Boolean
| BigInt
| Symbol
| Literal
| UniqueSymbol
| ObjectKeyword
| Enum
| TemplateLiteral
| Arrays
| Objects
| Union
The core tagged union of all supported schema shapes.
Details
Each variant has a _tag discriminator. Switch on _tag to handle each
shape. Most variants carry optional annotations and some carry checks
for validation constraints.
Representation
readonly Element.annotations?: anyannotations?: import SchemaSchema.declareAnnotations.type Schema.Annotations.Annotations = /*unresolved*/ anyAnnotations | undefined
}Referenced by 2 symbols