github samchon/typia v3.1.1

latest releases: v6.4.1, v6.4.0, v6.3.3...
24 months ago

What's Changed

Full Changelog: v3.0.12...v3.1.1

A new function validate() has come.

The validate() function archives all type errors into an IValidation.errors array, which being returned by the validate() function.

Special thanks for @edobrb who've suggested this validate() function.

export function validate<T>(input: T): IValidation;

export interface IValidation {
    success: boolean;
    errors: IValidation.IError[];
}
export namespace IValidation {
    export interface IError {
        path: string;
        expected: string;
        value: any;
    }
}

Don't miss a new typia release

NewReleases is sending notifications on new releases.