# Type Alias Validator

Validator: (
value: FieldContent,
formOptions?: FormValidationOptions,
) => ErrorId | ExtendedErrorId

#### Type Declaration

- - (
    value: FieldContent,
    formOptions?: FormValidationOptions,
    ): ErrorId | ExtendedErrorId

  - #### Parameters

    - value: FieldContent
    - `Optional` formOptions: FormValidationOptions

    #### Returns ErrorId | ExtendedErrorId

- Defined in jslib/src/lib/types/types.ts:2921