You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current nominal-typebox implementation is fragile because it copies a lot of Typebox code as-is just to replace the static field
Describe the solution you'd like
Since nominal-typebox was written, a new feature called Type.Unsafe was added to Typebox which allows easily overriding the static property without having to do copy a bunch of Typebox internals like this library does now
For example, in my code instead of using nomial-typebox I just do
exporttypeHexStringNo0x=FastFlavor<string,'HexStringNo0x'>;// this gives the same result as the nomial-typebox library, but with no dependency requiredconstHexStringNo0xTypebox=Type.Unsafe<HexStringNo0x>(Type.RegExp(/^[a-fA-F0-9]+$/)),
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The current
nominal-typebox
implementation is fragile because it copies a lot of Typebox code as-is just to replace thestatic
fieldDescribe the solution you'd like
Since
nominal-typebox
was written, a new feature calledType.Unsafe
was added to Typebox which allows easily overriding thestatic
property without having to do copy a bunch of Typebox internals like this library does nowFor example, in my code instead of using
nomial-typebox
I just doThe text was updated successfully, but these errors were encountered: