| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 89f3feb commit 6dab980
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -323,7 +323,7 @@ class ModuleLoader { | |||
| 323 | 323 | * @param {string} source Source code. TODO(joyeecheung): pass the raw buffer. | |
| 324 | 324 | * @param {string} isMain Whether this module is a main module. | |
| 325 | 325 | * @param {CJSModule|undefined} parent Parent module, if any. | |
| 326 | - * @returns {{wrap: ModuleWrap, namespace: ModuleNamespaceObject}} | ||
| 326 | + * @returns {{wrap: ModuleWrap, namespace: import('internal/modules/esm/utils').ModuleNamespaceObject}} | ||
| 327 | 327 | */ | |
| 328 | 328 | importSyncForRequire(mod, filename, source, isMain, parent) { | |
| 329 | 329 | const url = pathToFileURL(filename).href; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,12 +101,18 @@ function getConditionsSet(conditions) { | |||
| 101 | 101 | return getDefaultConditionsSet(); | |
| 102 | 102 | } | |
| 103 | 103 | ||
| 104 | + /** | ||
| 105 | + * @typedef {{ | ||
| 106 | + * [Symbol.toStringTag]: 'Module', | ||
| 107 | + * }} ModuleNamespaceObject | ||
| 108 | + */ | ||
| 109 | + | ||
| 104 | 110 | /** | |
| 105 | 111 | * @callback ImportModuleDynamicallyCallback | |
| 106 | 112 | * @param {string} specifier | |
| 107 | 113 | * @param {ModuleWrap|ContextifyScript|Function|vm.Module} callbackReferrer | |
| 108 | 114 | * @param {Record<string, string>} attributes | |
| 109 | - * @returns { Promise<void> } | ||
| 115 | + * @returns {Promise<ModuleNamespaceObject>} | ||
| 110 | 116 | */ | |
| 111 | 117 | ||
| 112 | 118 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments