Skip to content

Commit

Permalink
doc: fix JSDoc in ESM loaders examples
Browse files Browse the repository at this point in the history
PR-URL: #40984
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Mesteery authored and danielleadams committed Dec 13, 2021
1 parent f30d6bc commit 7c41f32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/esm.md
Expand Up @@ -683,8 +683,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 }>}
Expand Down Expand Up @@ -777,8 +777,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) {
Expand Down

0 comments on commit 7c41f32

Please sign in to comment.