-
Notifications
You must be signed in to change notification settings - Fork 0
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
add missing jsdoc imports and defs #3
Conversation
lib/internal/modules/esm/loader.js
Outdated
*/ | ||
|
||
/** | ||
* @typedef {Object} Customizations |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Co-authored-by: Jacob Smith <[email protected]>
lib/internal/modules/esm/loader.js
Outdated
/** | ||
* @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 | ||
*/ |
There was a problem hiding this comment.
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).
Co-authored-by: Jacob Smith <[email protected]>
9031f3a
into
JakobJingleheimer:esm/fix-jsdoc-getModuleJobForImport
No description provided.