dce-reactkit 3.6.21 → 3.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -1188,7 +1188,9 @@ declare const onlyKeepLetters: (str: string) => string;
|
|
|
1188
1188
|
*/
|
|
1189
1189
|
declare const parallelLimit: (taskFunctions: (() => Promise<any>)[], limit?: number) => Promise<any[]>;
|
|
1190
1190
|
|
|
1191
|
-
type MetadataPopulator = () =>
|
|
1191
|
+
type MetadataPopulator = () => {
|
|
1192
|
+
[k: string]: any;
|
|
1193
|
+
} | Promise<{
|
|
1192
1194
|
[k: string]: any;
|
|
1193
1195
|
}>;
|
|
1194
1196
|
/**
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import visitServerEndpoint from './visitServerEndpoint';
|
|
|
10
10
|
/* ------- Metadata Populator ------- */
|
|
11
11
|
|
|
12
12
|
// Type of a metadata populator function
|
|
13
|
-
type MetadataPopulator = () => Promise<{ [k: string]: any }>;
|
|
13
|
+
type MetadataPopulator = () => { [k: string]: any } | Promise<{ [k: string]: any }>;
|
|
14
14
|
|
|
15
15
|
// Current metadata populator function
|
|
16
16
|
let metadataPopulator: MetadataPopulator;
|