From d0547697601b26919fc2589c164958c156d8e2ef Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 12 Jan 2021 10:56:50 +0100 Subject: [PATCH] Add devtools form builder-related TypeScript interfaces --- .../Acp/Form/Builder/Field/Devtools/Project/Data.js | 4 ++++ .../Acp/Form/Builder/Field/Devtools/Project/Data.ts | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.js create mode 100644 wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.ts diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.js new file mode 100644 index 0000000000..2ae92b6a8b --- /dev/null +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.js @@ -0,0 +1,4 @@ +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.ts new file mode 100644 index 0000000000..d636a8cb91 --- /dev/null +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Data.ts @@ -0,0 +1,12 @@ +export interface PackageData { + packageIdentifier: string; +} + +export interface ExcludedPackageData extends PackageData { + version: string; +} + +export interface RequiredPackageData extends PackageData { + file: boolean; + minVersion: string; +} -- 2.20.1