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
assertStringify() is a new function combined assertType() and stringify().
When it converts an input value to JSON string, its type would be automatically validated and if the input value is not following the type T, TypeGuardError exception would be thrown. I think this function would be much useful than TSON.stringify() and it would be faster than JSON.stringify() even containing the validation process.
The text was updated successfully, but these errors were encountered:
assertStringify()
is a new function combinedassertType()
andstringify()
.When it converts an
input
value to JSON string, its type would be automatically validated and if theinput
value is not following the typeT
,TypeGuardError
exception would be thrown. I think this function would be much useful thanTSON.stringify()
and it would be faster thanJSON.stringify()
even containing the validation process.The text was updated successfully, but these errors were encountered: