RepresentationThe 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.
Source effect/SchemaRepresentation.ts:45623 lines
export type 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 =
| Declaration
| Reference
| Suspend
| Null
| Undefined
| Void
| Never
| Unknown
| Any
| String
| Number
| Boolean
| BigInt
| Symbol
| Literal
| UniqueSymbol
| ObjectKeyword
| Enum
| TemplateLiteral
| Arrays
| Objects
| UnionReferenced by 18 symbols
SchemaRepresentation.$RepresentationSchemaRepresentation.ArraysSchemaRepresentation.DeclarationSchemaRepresentation.DocumentSchemaRepresentation.ElementSchemaRepresentation.IndexSignatureSchemaRepresentation.MultiDocumentSchemaRepresentation.ObjectsMetaSchemaRepresentation.PropertySignatureSchemaRepresentation.ReferencesSchemaRepresentation.ReviverSchemaRepresentation.StringSchemaRepresentation.SuspendSchemaRepresentation.TemplateLiteralSchemaRepresentation.UnionSchemaRepresentation.fromJsonSchemaMultiDocumentSchemaRepresentation.toCodeDocumentSchemaRepresentation.toSchema