From 6d7d085a3890fce8a544cd594dfea4af2a75ecfe Mon Sep 17 00:00:00 2001 From: hirsch Date: Mon, 17 Jan 2022 15:35:25 +0100 Subject: [PATCH] fix(proxy): export ProxyComponent interface --- packages/components-angular/src/helpers.ts | 4 ++-- packages/components-vue/src/helpers.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 }