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);