Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing jsdoc imports and defs #3

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

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).

@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.

2 participants