From v4.3 update, below type comment tags being supported.
Also, in the bigint
case, it can use @type uint64
comment tag for unsigned bigint
restriction.
For reference, such type comment tags are designed to prepare the next v5 update, Protocol Buffer supporting.
@type {string}
int
/int32
:-2^31 <= x <= 2^31 - 1
uint
/uint32
:0 <= x <= 2^32 - 1
uint64
:0 <= x <= 2^64 - 1
int64
:-2^63 <= x <= 2^63 - 1
float
:-1.175494351e38 <= x <= 3.4028235e38
What's Changed
- Fix sinclairzx81/typebox#535 by @samchon in #766
- Support much more type comment tags. by @samchon in #769
- Limit range of
@type int/uint
comment tags. by @samchon in #770 @type int/uint
must not be adjusted tobigint
type. by @samchon in #771
Full Changelog: v4.2.3...v4.3.2