Skip to content

Commit

Permalink
Merge pull request #14 from scality/improvement/improve-componentWith…
Browse files Browse the repository at this point in the history
…InjectedImports-type

improve componentWithInjectedImports type
  • Loading branch information
JBWatenbergScality authored Nov 18, 2024
2 parents 7ade439 + abe6bb5 commit 97e0434
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scality/module-federation",
"version": "1.3.3",
"version": "1.3.4",
"description": "",
"main": "build/ModuleFederation.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/ModuleFederation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ export const ComponentWithFederatedImports = <Props extends {}>({
componentProps,
federatedImports,
}: {
renderOnError: ReactNode;
renderOnError?: ReactNode;
renderOnLoading?: ReactNode;
componentWithInjectedImports: FunctionComponent<Props>;
componentWithInjectedImports: FunctionComponent<
Props & { moduleExports: Record<string, unknown> }
>;
componentProps: Props;
federatedImports: {
remoteEntryUrl: string;
Expand Down

0 comments on commit 97e0434

Please sign in to comment.