Skip to content

add missing jsdoc imports and defs#3

Merged
JakobJingleheimer merged 6 commits intoJakobJingleheimer:esm/fix-jsdoc-getModuleJobForImportfrom
Ceres6:esm/jsdoc
Jan 10, 2025
Merged

add missing jsdoc imports and defs#3
JakobJingleheimer merged 6 commits intoJakobJingleheimer:esm/fix-jsdoc-getModuleJobForImportfrom
Ceres6:esm/jsdoc

Conversation

@Ceres6
Copy link
Copy Markdown
Collaborator

@Ceres6 Ceres6 commented Jan 7, 2025

No description provided.

Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
*/

/**
* @typedef {Object} Customizations
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 thread lib/internal/modules/esm/loader.js Outdated
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
Copy Markdown
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).

Comment thread lib/internal/modules/esm/loader.js Outdated
Comment thread lib/internal/modules/esm/loader.js Outdated
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
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