svelte-form/rule/max

Svelte Form validation rules module.

Source:

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

Source:

Max rule

Parameters:
Name Type Description
msg string

error message.

arg number

max number.

Returns:

true when valid, error message otherwise.

Type
boolean | string