[BUG] Returning type of createAssertGuard is invalid
Closed this issue · 1 comments
miyaji255 commented
samchon commented
import typia, { tags } from "typia";
interface IMember {
id: string & tags.Format<"uuid">;
name: string;
age: number &
tags.Type<"uint32"> &
tags.Minimum<20> &
tags.ExclusiveMaximum<100>;
}
const guardMember: typia.AssertionGuard<IMember> = typia.createAssertGuard<IMember>();
You have to declare explicit type like above.
It is the TypeScript assertion type rule.