@bool-ts/core 1.7.15 → 1.7.16
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/hooks/factory.d.ts +1 -1
- package/package.json +1 -1
- package/src/hooks/factory.ts +1 -4
package/dist/hooks/factory.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare const moduleResolution: (module: new (...args: any[]) => unknown,
|
|
|
66
66
|
}>[];
|
|
67
67
|
routerGroup: RouterGroup;
|
|
68
68
|
}> | undefined>;
|
|
69
|
-
export declare const BoolFactory: (modules:
|
|
69
|
+
export declare const BoolFactory: (modules: Object | Array<Object>, options: TBoolFactoryOptions) => Promise<void>;
|
|
70
70
|
export default BoolFactory;
|
package/package.json
CHANGED
package/src/hooks/factory.ts
CHANGED
|
@@ -924,10 +924,7 @@ const fetcher = async (
|
|
|
924
924
|
);
|
|
925
925
|
};
|
|
926
926
|
|
|
927
|
-
export const BoolFactory = async (
|
|
928
|
-
modules: new (...args: any[]) => unknown | Array<new (...args: any[]) => unknown>,
|
|
929
|
-
options: TBoolFactoryOptions
|
|
930
|
-
) => {
|
|
927
|
+
export const BoolFactory = async (modules: Object | Array<Object>, options: TBoolFactoryOptions) => {
|
|
931
928
|
try {
|
|
932
929
|
const modulesConverted = !Array.isArray(modules) ? [modules] : modules;
|
|
933
930
|
const { allowLogsMethods, staticOption, allowOrigins, allowMethods, allowCredentials, allowHeaders } = Object.freeze({
|