diff --git a/src/formio/components/addressNL.ts b/src/formio/components/addressNL.ts index fb2032e..b1598a1 100644 --- a/src/formio/components/addressNL.ts +++ b/src/formio/components/addressNL.ts @@ -1,6 +1,5 @@ -import {InputComponentSchema} from '..'; -import {HasValidation} from '../base'; -import {ComponentTranslations, ErrorTranslations} from '../i18n'; +import {HasValidation, InputComponentSchema} from '..'; +import {ComponentTranslations} from '../i18n'; type Validator = 'required'; type TranslatableKeys = 'label' | 'description' | 'tooltip'; @@ -15,14 +14,9 @@ export interface AddressData { secretStreetCity?: string; } -export interface ComponentValidation { - validate: HasValidation<'pattern'>; - translatedErrors: ErrorTranslations; -} - export interface AddressComponents { - postcode?: ComponentValidation; - city?: ComponentValidation; + postcode?: HasValidation<'pattern', false>; + city?: HasValidation<'pattern', false>; } export type AddressNLInputSchema = InputComponentSchema;