James - JollyCoding @jollycod.ing · Mar 28

To validate this now, we can input our data into the user function. This function accepts any type of data (unknown) and will return either the validated data if there are no issues or ArkErrors if there are problems.

0 likes 1 replies

?

Replies

James - JollyCoding · Mar 28

To obtain error messages, use `instanceof` to check the object type. If it's an error, print a human-readable summary with `checked.summary`; otherwise, `checked` will contain the validated data.