UNPKG

typia

Version:

Superfast runtime validators with only one line

12 lines (9 loc) 270 B
import { _randomString } from "./_randomString"; export const _randomFormatEmail = (): string => `${random(10)}@${random(10)}.${random(3)}`; const random = (length: number) => _randomString({ type: "string", minLength: length, maxLength: length, });