From 6e1127ef5f3d92ebaf38c913e98d8076f4956d22 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Fri, 21 Oct 2022 13:24:54 -0400 Subject: [PATCH] fix(react): createComponent prop type error --- .../src/components/react-component-lib/createComponent.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/src/components/react-component-lib/createComponent.tsx b/packages/react/src/components/react-component-lib/createComponent.tsx index a5e3c37092..1e756bd35a 100644 --- a/packages/react/src/components/react-component-lib/createComponent.tsx +++ b/packages/react/src/components/react-component-lib/createComponent.tsx @@ -27,9 +27,9 @@ export const createReactComponent = < ReactComponentContext?: React.Context, manipulatePropsFunction?: ( originalProps: StencilReactInternalProps, - propsToPass: any, + propsToPass: any ) => ExpandedPropsTypes, - defineCustomElement?: () => void, + defineCustomElement?: () => void ) => { if (defineCustomElement !== undefined) { defineCustomElement(); @@ -68,7 +68,7 @@ export const createReactComponent = < (acc as any)[name] = (cProps as any)[name]; } return acc; - }, {}); + }, {} as ExpandedPropsTypes); if (manipulatePropsFunction) { propsToPass = manipulatePropsFunction(this.props, propsToPass);