From ab4bfce9bb6abf6978640f8aade7f3449ae0848c Mon Sep 17 00:00:00 2001 From: Waldemar Mazurek Date: Mon, 25 Nov 2024 10:08:22 +0100 Subject: [PATCH] Improves typings in Luigi container (#4030) --- container/package.json | 2 +- container/src/LuigiCompoundContainer.svelte | 19 +- container/src/LuigiContainer.svelte | 24 +- container/src/api/container-api.ts | 23 +- container/src/constants/container.model.ts | 58 +++ container/src/constants/event-type.ts | 10 +- container/src/main.ts | 5 +- container/src/services/container.service.ts | 21 +- container/src/services/iframe-helpers.ts | 2 +- .../src/services/web-component-helpers.ts | 67 ++- .../src/services/webcomponents.service.ts | 88 ++-- container/src/utilities/helpers.ts | 16 +- container/test/api/container-api.spec.ts | 438 +++++++++--------- .../test/services/container.service.spec.ts | 33 +- .../services/web-component-helpers.spec.ts | 208 ++++----- container/test/utilities/helpers.spec.ts | 323 +++++++------ container/tsconfig.json | 1 + container/typings/constants/event-type.d.ts | 26 +- 18 files changed, 749 insertions(+), 615 deletions(-) create mode 100644 container/src/constants/container.model.ts diff --git a/container/package.json b/container/package.json index 6f1fdfee1a..97b74199e6 100644 --- a/container/package.json +++ b/container/package.json @@ -46,6 +46,7 @@ "@types/jest": "^29.5.12", "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", + "@typescript-eslint/typescript-estree": "^8.13.0", "chokidar-cli": "^3.0.0", "cli-color": "^2.0.4", "concurrently": "^7.6.0", @@ -65,7 +66,6 @@ "svelte-preprocess": "5.0.4", "tslib": "2.6.1", "typescript": "5.1.6", - "@typescript-eslint/typescript-estree": "^8.13.0", "typescript-eslint": "^8.13.0" }, "engines": { diff --git a/container/src/LuigiCompoundContainer.svelte b/container/src/LuigiCompoundContainer.svelte index 9a6fe53660..2360c3dd87 100644 --- a/container/src/LuigiCompoundContainer.svelte +++ b/container/src/LuigiCompoundContainer.svelte @@ -62,11 +62,13 @@