Skip to content

Conversation

@Ceres6
Copy link
Collaborator

@Ceres6 Ceres6 commented Jan 7, 2025

No description provided.

*/

/**
* @typedef {Object} Customizations
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want object (little o)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this definition already exists in customization_hooks too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the first one, couldn't find a definition in customization_hooks

Ceres6 and others added 2 commits January 7, 2025 14:03
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
Comment on lines 119 to 127
/**
* @typedef {object} Customizations
* @property {boolean} allowImportMetaResolve
* @property {(url: string, context: object) => Promise<ModuleLoadResult>} load
* @property {(originalSpecifier: string, parentURL: string, importAttributes: Record<string, string>) => Promise<ModuleResolveResult>} resolve
* @property {(originalSpecifier: string, parentURL: string, importAttributes: Record<string, string>) => ModuleResolveResult} resolveSync
* @property {(specifier: string, parentURL: string) => any} register
* @property {() => void} forceLoadHooks
*/
Copy link
Owner

@JakobJingleheimer JakobJingleheimer Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, sorry, you can just use CustomizedModuleLoader (the class defined lower in this file).

Ceres6 and others added 2 commits January 10, 2025 09:55
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
@JakobJingleheimer JakobJingleheimer merged commit 9031f3a into JakobJingleheimer:esm/fix-jsdoc-getModuleJobForImport Jan 10, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants