diff --git a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/FlexFormSectionContainer.ts b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/FlexFormSectionContainer.ts index c286daeceebfc1191845bdea55b9cab5f5cc4e6d..1edea9f804bbb0596aebe75ed049fd1df1420854 100644 --- a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/FlexFormSectionContainer.ts +++ b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/FlexFormSectionContainer.ts @@ -151,6 +151,7 @@ class FlexFormSectionContainer { const sectionContainer = document.querySelector(dataset.target); sectionContainer.insertAdjacentElement('beforeend', createdContainer); + // @todo deprecate or remove with TYPO3 v12.0 if (data.scriptCall && data.scriptCall.length > 0) { $.each(data.scriptCall, function (index: number, value: string): void { // eslint-disable-next-line no-eval diff --git a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts index 3293d5d3d0aaa493e12cf77901251415b81704f0..fa41e5eb07f6291f451da29816a0ae8042919b61 100644 --- a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts +++ b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts @@ -27,7 +27,7 @@ interface Message { message: string; } -interface Response { +export interface AjaxDispatcherResponse { hasErrors: boolean; messages: Message[]; stylesheetFiles: string[]; @@ -93,7 +93,7 @@ export class AjaxDispatcher { return context; } - private processResponse(json: Response): Response { + private processResponse(json: AjaxDispatcherResponse): AjaxDispatcherResponse { if (json.hasErrors) { for (const message of json.messages) { Notification.error(message.title, message.message); diff --git a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/InlineResponseInterface.ts b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/InlineResponseInterface.ts index 1c5117649e33914eb64be22fa4e6b369edd54b20..871a36364af685aa752f9ca382ba81d4c20b2936 100644 --- a/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/InlineResponseInterface.ts +++ b/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/InlineResponseInterface.ts @@ -11,11 +11,13 @@ * The TYPO3 project - inspiring people to share! */ -export interface InlineResponseInterface { +import {AjaxDispatcherResponse} from 'TYPO3/CMS/Backend/FormEngine/InlineRelation/AjaxDispatcher'; + +export interface InlineResponseInterface extends AjaxDispatcherResponse{ data: string; - inlineData?: InlineData; - scriptCall?: Array<string>; - stylesheetFiles?: Array<string>; + inlineData: InlineData; + scriptCall: Array<string>; + stylesheetFiles: Array<string>; compilerInput?: CompilerInput, }