Optional
descriptionOptional human-readable description of the type guard error
This field is rarely populated in standard typia type assertion and is primarily intended for specialized AI agent libraries or custom validation scenarios that require additional context beyond the technical type information. Most assertion errors rely solely on the path, expected, and value fields for comprehensive error reporting.
String representation of the expected type at the error location.
Optional
messageCustom error message (optional).
If not provided, a default format message will be automatically generated.
The name of the typia method that threw the error.
Optional
pathThe access path to the property where the assertion error occurred (optional).
The actual value that failed assertion.
Interface for properties passed to the TypeGuardError constructor.
Example