This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
Releases: Effect-TS/schema
Releases · Effect-TS/schema
v0.19.3
v0.19.2
v0.19.1
v0.19.0
v0.18.0
Minor Changes
-
#274
eae1614
Thanks @gcanti! - remove getPropertySignatures API (see #271) -
#274
eae1614
Thanks @gcanti! - rename AST.getTo -> to, AST.getFrom -> from
p.s.
Here's how to define getPropertySignatures
in userland:
import * as AST from '@effect/schema/AST'
import { Schema, make } from '@effect/schema/Schema'
export const getPropertySignatures = <I extends { [K in keyof A]: any }, A>(
schema: Schema<I, A>
): { [K in keyof A]: Schema<I[K], A[K]> } => {
const out: Record<PropertyKey, Schema<any>> = {}
const propertySignatures = AST.getPropertySignatures(schema.ast)
for (let i = 0; i < propertySignatures.length; i++) {
const propertySignature = propertySignatures[i]
out[propertySignature.name] = make(propertySignature.type)
}
return out as any
}
v0.17.5
v0.17.4
v0.17.3
v0.17.2
Patch Changes
- #258
1b65e53
Thanks @mikearnaldi! - Try publishing again