Type alias DeserializationResult<T>

DeserializationResult<T>: {
    deserialized: T;
    error?: undefined;
    errorLevel?: undefined;
    errorPath?: undefined;
} | {
    deserialized?: T;
    error: string;
    errorLevel: ValidationErrorLevel;
    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

Type Parameters

  • T

Type declaration

  • deserialized: T
  • Optional error?: undefined
  • Optional errorLevel?: undefined
  • Optional errorPath?: undefined

Type declaration

Generated using TypeDoc