v3.1.1
What's Changed
- Revise README, add FUNDING.yml, and enhance TDD by @samchon in #151
- V3.1, new function
validate()
by @samchon in #154
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;
}
}