@yobta/validator
Version:
Tree-shakable es6 validator
8 lines • 394 B
TypeScript
import type { YobtaMaybe } from '../_types/YobtaMaybe.js';
import type { YobtaSyncRule } from '../rule/rule.js';
export declare const emailMessage = "It should be an email";
export type YobtaEmail = {
__email__: void;
} & string;
export declare const email: <I extends string | undefined>(message?: string) => YobtaSyncRule<I, YobtaMaybe<I, YobtaEmail>>;
//# sourceMappingURL=email.d.ts.map