Skip to content

Commit

Permalink
fix(esl-animate): missing types for esl-animate module
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Jun 26, 2023
1 parent 61b58b5 commit 2000e04
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/esl-animate/core/esl-animate-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ export class ESLAnimateMixin extends ESLMixinElement {
ESLAnimateService.observe(this.$host, this.mergeDefaultParams());
}
}

declare global {
export interface ESLLibrary {
AnimateMixin: typeof ESLAnimateMixin;
}
}
6 changes: 6 additions & 0 deletions src/modules/esl-animate/core/esl-animate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,9 @@ export class ESLAnimateService {
if (config._unsubscribe) this.unobserve(item);
}
}

declare global {
export interface ESLLibrary {
AnimateService: typeof ESLAnimateService;
}
}
10 changes: 10 additions & 0 deletions src/modules/esl-animate/core/esl-animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,13 @@ export class ESLAnimate extends ESLBaseElement {
});
}
}

declare global {
export interface ESLLibrary {
Animate: typeof ESLAnimate;
}
export interface HTMLElementTagNameMap {
'esl-animate': ESLAnimate;
}
}

0 comments on commit 2000e04

Please # to comment.