Skip to content

@sylis/web v0.0.0


@sylis/web / components/form/context / ValidationRule

Interface: ValidationRule

Defined in: apps/web/src/components/form/context.ts:4

Properties

max?

optional max: number

Defined in: apps/web/src/components/form/context.ts:9


message?

optional message: string

Defined in: apps/web/src/components/form/context.ts:6


min?

optional min: number

Defined in: apps/web/src/components/form/context.ts:8


pattern?

optional pattern: RegExp

Defined in: apps/web/src/components/form/context.ts:7


required?

optional required: boolean

Defined in: apps/web/src/components/form/context.ts:5


validator()?

optional validator: (value, allValues) => void | Promise<void>

Defined in: apps/web/src/components/form/context.ts:10

Parameters

value

any

allValues

Record<string, any>

Returns

void | Promise<void>