diff --git a/package-lock.json b/package-lock.json index 38953ab..7453456 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scality/module-federation", - "version": "1.3.3", + "version": "1.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scality/module-federation", - "version": "1.3.3", + "version": "1.3.4", "license": "SEE LICENSE IN LICENSE", "devDependencies": { "@module-federation/enhanced": "^0.2.2", diff --git a/package.json b/package.json index 86adabb..1e4eced 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scality/module-federation", - "version": "1.3.3", + "version": "1.3.4", "description": "", "main": "build/ModuleFederation.js", "scripts": { diff --git a/src/ModuleFederation.tsx b/src/ModuleFederation.tsx index 0420b0e..064b9aa 100644 --- a/src/ModuleFederation.tsx +++ b/src/ModuleFederation.tsx @@ -136,9 +136,11 @@ export const ComponentWithFederatedImports = ({ componentProps, federatedImports, }: { - renderOnError: ReactNode; + renderOnError?: ReactNode; renderOnLoading?: ReactNode; - componentWithInjectedImports: FunctionComponent; + componentWithInjectedImports: FunctionComponent< + Props & { moduleExports: Record } + >; componentProps: Props; federatedImports: { remoteEntryUrl: string;