mirror of
https://github.com/zoriya/typebox.git
synced 2025-12-06 06:46:10 +00:00
959 B
959 B
0.22.0
Updates:
- The type
TSchemais now expressed as an HKT compatible interface. All types now extend theTSchemainterface and are themselves also expressed as interfaces. This work was undertaken to explore recursive type aliases in future releases. - The phantom property
_inferhas been renamed to$static. Callers should not interact with this property as it will always beundefinedand used exclusively for optimizing type inference in TypeScript 4.5 and above. - TypeBox re-adds the feature to deeply introspect schema properties. This feature was temporarily removed on the
0.21.0update to resolve deep instantiation errors on TypeScript 4.5. - The
Type.Box(...)andType.Rec(...)functions internally rename the propertydefinitionsto$defsinline with JSON schema draft 2019-09 conventions. Reference here.