| | |
| | | /** @typedef {import("./Module")} Module */ |
| | | |
| | | /** |
| | | * Defines the module factory result type used by this module. |
| | | * @typedef {object} ModuleFactoryResult |
| | | * @property {Module=} module the created module or unset if no module was created |
| | | * @property {Set<string>=} fileDependencies |
| | |
| | | /** @typedef {string | null} IssuerLayer */ |
| | | |
| | | /** |
| | | * Defines the module factory create data context info type used by this module. |
| | | * @typedef {object} ModuleFactoryCreateDataContextInfo |
| | | * @property {string} issuer |
| | | * @property {IssuerLayer} issuerLayer |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Defines the module factory create data type used by this module. |
| | | * @typedef {object} ModuleFactoryCreateData |
| | | * @property {ModuleFactoryCreateDataContextInfo} contextInfo |
| | | * @property {ResolveOptions=} resolveOptions |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Represents the module factory runtime component. |
| | | * @typedef {(err?: Error | null, result?: ModuleFactoryResult) => void} ModuleFactoryCallback |
| | | */ |
| | | |
| | | class ModuleFactory { |
| | | /* istanbul ignore next */ |
| | | /** |
| | | * Processes the provided data. |
| | | * @abstract |
| | | * @param {ModuleFactoryCreateData} data data object |
| | | * @param {ModuleFactoryCallback} callback callback |