types(compartment-mapper): Module exits can be any type at time of load
MODIFY
packages/compartment-mapper/src/import-hook.js
packages/compartment-mapper/src/import-hook.js
@@ -25,7 +25,7 @@ const freeze = Object.freeze;
const { hasOwnProperty } = Object.prototype;
/**
- * @param {Record<string, never>} haystack
+ * @param {Record<string, any>} haystack
* @param {string} needle
*/
const has = (haystack, needle) => apply(hasOwnProperty, haystack, [needle]);
@@ -42,7 +42,7 @@ const resolveLocation = (rel, abs) => new URL(rel, abs).toString();
* @param {string} baseLocation
* @param {Sources} sources
* @param {Record<string, CompartmentDescriptor>} compartments
- * @param {Record<string, never>} exitModules
+ * @param {Record<string, any>} exitModules
* @param {HashFn=} computeSha512
* @returns {ImportHookMaker}
*/

MODIFY
packages/compartment-mapper/src/types.js
packages/compartment-mapper/src/types.js
@@ -200,7 +200,7 @@ export const moduleJSDocTypes = true;
/**
* @typedef {Object} LoadArchiveOptions
* @property {string} [expectedSha512]
- * @property {Record<string, unknown>} [modules]
+ * @property {Record<string, any>} [modules]
* @property {Compartment} [Compartment]
* @property {ComputeSourceLocationHook} [computeSourceLocation]
*/
@@ -280,7 +280,7 @@ export const moduleJSDocTypes = true;
/**
* @typedef {Object} ArchiveOptions
* @property {ModuleTransforms} [moduleTransforms]
- * @property {Record<string, never>} [modules]
+ * @property {Record<string, any>} [modules]
* @property {boolean} [dev]
* @property {CaptureSourceLocationHook} [captureSourceLocation]
*/

types(compartment-mapper): Module exits can be any type at time of load