mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
doc: fix JSDoc in ESM loaders examples
PR-URL: https://github.com/nodejs/node/pull/40984 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
610696ac54
commit
005e933ff4
1 file changed
+4
-4
+4
-4
@@ -684,8 +684,8 @@ Node.js module specifier resolution behavior_ when calling `defaultResolve`, the
|
||||
/**
|
||||
* @param {string} specifier
|
||||
* @param {{
|
||||
* conditions: !Array<string>,
|
||||
* parentURL: !(string | undefined),
|
||||
* conditions: string[],
|
||||
* parentURL: string | undefined,
|
||||
* }} context
|
||||
* @param {Function} defaultResolve
|
||||
* @returns {Promise<{ url: string }>}
|
||||
@@ -778,8 +778,8 @@ format to a supported one, for example `yaml` to `module`.
|
||||
}} context If resolve settled with a `format`, that value is included here.
|
||||
* @param {Function} defaultLoad
|
||||
* @returns {Promise<{
|
||||
format: !string,
|
||||
source: !(string | ArrayBuffer | SharedArrayBuffer | Uint8Array),
|
||||
format: string,
|
||||
source: string | ArrayBuffer | SharedArrayBuffer | Uint8Array,
|
||||
}>}
|
||||
*/
|
||||
export async function load(url, context, defaultLoad) {
|
||||
|
||||
Reference in new issue
Block a user