From 2000e041f882a7f22af620285b52ff5e5caf3b19 Mon Sep 17 00:00:00 2001 From: "ala'n (Alexey Stsefanovich)" Date: Mon, 26 Jun 2023 23:20:46 +0200 Subject: [PATCH] fix(esl-animate): missing types for `esl-animate` module --- src/modules/esl-animate/core/esl-animate-mixin.ts | 6 ++++++ src/modules/esl-animate/core/esl-animate-service.ts | 6 ++++++ src/modules/esl-animate/core/esl-animate.ts | 10 ++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/modules/esl-animate/core/esl-animate-mixin.ts b/src/modules/esl-animate/core/esl-animate-mixin.ts index c370de07c..9245c1690 100644 --- a/src/modules/esl-animate/core/esl-animate-mixin.ts +++ b/src/modules/esl-animate/core/esl-animate-mixin.ts @@ -48,3 +48,9 @@ export class ESLAnimateMixin extends ESLMixinElement { ESLAnimateService.observe(this.$host, this.mergeDefaultParams()); } } + +declare global { + export interface ESLLibrary { + AnimateMixin: typeof ESLAnimateMixin; + } +} diff --git a/src/modules/esl-animate/core/esl-animate-service.ts b/src/modules/esl-animate/core/esl-animate-service.ts index 5f05b8076..b4b5497cc 100644 --- a/src/modules/esl-animate/core/esl-animate-service.ts +++ b/src/modules/esl-animate/core/esl-animate-service.ts @@ -159,3 +159,9 @@ export class ESLAnimateService { if (config._unsubscribe) this.unobserve(item); } } + +declare global { + export interface ESLLibrary { + AnimateService: typeof ESLAnimateService; + } +} diff --git a/src/modules/esl-animate/core/esl-animate.ts b/src/modules/esl-animate/core/esl-animate.ts index 544628bd6..e26f21069 100644 --- a/src/modules/esl-animate/core/esl-animate.ts +++ b/src/modules/esl-animate/core/esl-animate.ts @@ -95,3 +95,13 @@ export class ESLAnimate extends ESLBaseElement { }); } } + +declare global { + export interface ESLLibrary { + Animate: typeof ESLAnimate; + } + export interface HTMLElementTagNameMap { + 'esl-animate': ESLAnimate; + } +} +