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 Feb 1, 2022
1 parent 714efe4 commit 341a999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,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 @@ -772,8 +772,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 341a999

Please sign in to comment.