Type Alias DeserializationResult<T>

DeserializationResult:
    | {
        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