deno.land / x / typebox@0.32.21 / changelog / 0.18.0.md
Changes:
Type.Intersect(...)
is now implemented with allOf
and constrained with unevaluatedProperties
(draft 2019-09
)Type.Dict(...)
has been deprecated and replaced with Type.Record(...)
.Type.Strict(...)
now includes the $schema
property referencing the 2019-09
draft.TypeBox now targets JSON schema draft 2019-09
for expressing Type.Intersect(...)
. This is now expressed via allOf
with additionalProperties constrained with unevaluatedProperties
. Note that unevaluatedProperties
is a feature of the 2019-09
specification.
TypeBox has deprecated Type.Dict(...)
in favor of the more generic Type.Record(...)
. Where as Type.Dict(...)
was previously expressed with additionalProperties: { ... }
, Type.Record(...)
is expressed with patternProperties
and supports both string
and number
indexer keys. Additionally, Type.Record(...)
supports string union arguments. This is analogous to TypeScript's utility record type Record<'a' | 'b' | 'c', T>
.
Changes:
$id
argument on Type.Rec()
.Version Info