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
When a typia.assert<T>() throws the TypeGuardError, would be nice to have the original T name interface as part of the Error object thrown so that it can be used to connect which interface has thrown.
Example
From the doc:
importtypia,{tags}from"typia";import{v4}from"uuid";typia.assert<IMember>({id: v4(),email: "samchon.github@gmail.com",age: 18,// wrong, must be greater than 19});interfaceIMember{id: string&tags.Format<"uuid">;email: string&tags.Format<"email">;age: number&tags.Type<"uint32">&tags.ExclusiveMinimum<19>&tags.Maximum<100>;}
Description
When a
typia.assert<T>()
throws theTypeGuardError
, would be nice to have the originalT
name interface as part of theError
object thrown so that it can be used to connect which interface has thrown.Example
From the doc:
Would throw
Or with a change in the API
The text was updated successfully, but these errors were encountered: