INPUT
Your TypeScript Code
import typia, { tags } from "typia";
interface IMember {
id: string & tags.Format<"uuid">;
email: string & tags.Format<"email">;
age: number &
tags.Type<"uint32"> &
tags.ExclusiveMinimum<19> &
tags.Maximum<100>;
}
// just one line, with pure TypeScript type
const check: boolean = typia.is<IMember>(input);
→
OUTPUT
Compiled Output
// compiled JavaScript — no schema overhead
((input) =>
"object" === typeof input &&
null !== input &&
"string" === typeof input.id &&
isFormatUuid(input.id) &&
"string" === typeof input.email &&
isFormatEmail(input.email) &&
"number" === typeof input.age &&
Number.isInteger(input.age) &&
19 < input.age &&
100 >= input.age)