Skip to content

Commit f31abc6

Browse files
authored
🤖 Merge PR DefinitelyTyped#73152 feat(loadable__components): Add missing type for LoadableReadyOptions by @chrisxcooper
1 parent 1429d41 commit f31abc6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎types/loadable__component/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface OptionsWithResolver<Props, Module = DefaultComponent<Props>> ex
3333

3434
export interface LoadableReadyOptions {
3535
namespace?: string | undefined;
36+
chunkLoadingGlobal?: string | undefined;
3637
}
3738

3839
export interface LoadableComponentMethods<Props> {

‎types/loadable__component/loadable__component-tests.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,7 @@ function importLibLoader() {
220220

221221
// Should allow passing options with namespace
222222
loadableReady(() => {}, { namespace: "foo" });
223+
224+
// Should allow passing options with chunkLoadingGlobal
225+
loadableReady(() => {}, { chunkLoadingGlobal: "foo" });
223226
}

0 commit comments

Comments
 (0)