diff --git a/packages/components-angular/src/helpers.ts b/packages/components-angular/src/helpers.ts index 3e2b0abc6c..3b69b17ddb 100644 --- a/packages/components-angular/src/helpers.ts +++ b/packages/components-angular/src/helpers.ts @@ -5,12 +5,12 @@ export const parseCustomEvent = (event: CustomEvent | Event): T => { throw Error('Event was not a Custom Event or did not had a detail prop!') } -interface WebComponent { +export interface ProxyComponent { el: T } // eslint-disable-next-line export const element = (elementReference: any): T => { - const component: WebComponent = elementReference + const component: ProxyComponent = elementReference return component.el } diff --git a/packages/components-vue/src/helpers.ts b/packages/components-vue/src/helpers.ts index 816d3de70a..f837adbcad 100644 --- a/packages/components-vue/src/helpers.ts +++ b/packages/components-vue/src/helpers.ts @@ -1,15 +1,15 @@ import { Ref, unref } from 'vue' /** - * WebComponent Helpers + * ProxyComponent Helpers */ -interface WebComponent { +export interface ProxyComponent { $el: T } // eslint-disable-next-line export const element = (elementReference: Ref | any): T => { - const component: WebComponent = unref(elementReference) + const component: ProxyComponent = unref(elementReference) return component.$el }