| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f57765b commit 1521125
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,7 +280,7 @@ class ModuleLoader { | |||
| 280 | 280 | * @param {string} source Source code. TODO(joyeecheung): pass the raw buffer. | |
| 281 | 281 | * @param {string} isMain Whether this module is a main module. | |
| 282 | 282 | * @param {CJSModule|undefined} parent Parent module, if any. | |
| 283 | - * @returns {{wrap: ModuleWrap, namespace: ModuleNamespaceObject}} | ||
| 283 | + * @returns {{wrap: ModuleWrap, namespace: import('internal/modules/esm/utils').ModuleNamespaceObject}} | ||
| 284 | 284 | */ | |
| 285 | 285 | importSyncForRequire(mod, filename, source, isMain, parent) { | |
| 286 | 286 | 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