svelte-form/rule/required

Svelte Form validation rules module.

Source:

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

Source:

Required rule

Parameters:
Name Type Description
msg string

error message.

Returns:

true when valid, error message otherwise.

Type
boolean | string