ObjectsAn object/struct type with named properties and optional index signatures.
Details
propertySignatures are the explicitly named fields. indexSignatures
define catch-all key/value types, such as Record<string, T>. checks
holds object-specific constraints, such as minProperties and maxProperties.
Source effect/SchemaRepresentation.ts:3747 lines
export interface Objects {
readonly Objects._tag: "Objects"_tag: "Objects"
readonly Objects.annotations?: anyannotations?: import SchemaSchema.declareAnnotations.type Schema.Annotations.Annotations = /*unresolved*/ anyAnnotations | undefined
readonly Objects.propertySignatures: ReadonlyArray<PropertySignature>propertySignatures: interface ReadonlyArray<T>ReadonlyArray<PropertySignature>
readonly Objects.indexSignatures: ReadonlyArray<IndexSignature>indexSignatures: interface ReadonlyArray<T>ReadonlyArray<IndexSignature>
readonly Objects.checks: ReadonlyArray<Check<ObjectsMeta>>checks: interface ReadonlyArray<T>ReadonlyArray<type Check<M> = Filter<M> | FilterGroup<M>A validation constraint attached to a type. Either a single
Filter
or a
FilterGroup
combining multiple checks.
Check<type ObjectsMeta = anyMetadata union for object-specific validation checks (minProperties,
maxProperties, propertiesLength, propertyNames).
ObjectsMeta>>
}Referenced by 1 symbols