@snowtop/ent-email
Version:
snowtop ent email datatype
11 lines (10 loc) • 414 B
TypeScript
import { Type, Field, FieldOptions, BaseField, ListField } from "@snowtop/ent";
export declare class Email extends BaseField implements Field {
private _domain;
domain(domain: string): this;
valid(val: any): boolean;
format(val: any): any;
type: Type;
}
export declare function EmailType(options?: FieldOptions): Email;
export declare function EmailListType(options?: FieldOptions): ListField;