Type alias DeserializationResult<T>
DeserializationResult<T>: { deserialized: T; error?: undefined; errorLevel?: undefined; errorPath?: undefined; } | { deserialized?: T; error: string; errorLevel: ValidationErrorLevel; errorPath: string; } Type declaration
deserialized: T
Optional
error?: undefined
Optional
errorLevel?: undefined
Optional
errorPath?: undefined
Type declaration
Optional
deserialized?: T
error: string
errorPath: string
If error is undefined, the result is a success. Otherwise, there was a problem. The severity of the problem, if applicable, is indicated by
errorLevel