diff --git a/src/formio/components/addressNL.ts b/src/formio/components/addressNL.ts index 86b20ae..47cd8f2 100644 --- a/src/formio/components/addressNL.ts +++ b/src/formio/components/addressNL.ts @@ -13,6 +13,16 @@ export interface AddressData { secretStreetCity?: string; } +export interface ComponentValidation { + validate: {pattern: string}; + translatedErrors: object; +} + +export interface AddressComponents { + postcode: ComponentValidation; + city: ComponentValidation; +} + export type AddressNLInputSchema = InputComponentSchema; /** @@ -24,4 +34,5 @@ export interface AddressNLComponentSchema type: 'addressNL'; deriveAddress: boolean; layout: 'singleColumn' | 'doubleColumn'; + components: AddressComponents; }