svelte-form/rule/email

Svelte Form validation rules module.

Source:

(require("svelte-form/rule/email"))(msg) → {boolean|string}

Source:

Email rule

Parameters:
Name Type Description
msg string

error message.

Returns:

true when valid, error message otherwise.

Type
boolean | string