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:
Mestery authored and GitHub committed 2021-11-29 17:28:34 +00:00
1 parent 610696ac54
commit 005e933ff4
1 file changed
+4 -4
+4 -4
View File
@@ -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) {