Skip to content

Commit d19bb65

Browse files
Mesteerydanielleadams
authored andcommitted
doc: fix JSDoc in ESM loaders examples
PR-URL: #40984 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 88e27fa commit d19bb65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/esm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ Node.js module specifier resolution behavior_ when calling `defaultResolve`, the
642642
/**
643643
* @param {string} specifier
644644
* @param {{
645-
* conditions: !Array<string>,
646-
* parentURL: !(string | undefined),
645+
* conditions: string[],
646+
* parentURL: string | undefined,
647647
* }} context
648648
* @param {Function} defaultResolve
649649
* @returns {Promise<{ url: string }>}
@@ -734,8 +734,8 @@ format to a supported one, for example `yaml` to `module`.
734734
}} context If resolve settled with a `format`, that value is included here.
735735
* @param {Function} defaultLoad
736736
* @returns {Promise<{
737-
format: !string,
738-
source: !(string | ArrayBuffer | SharedArrayBuffer | Uint8Array),
737+
format: string,
738+
source: string | ArrayBuffer | SharedArrayBuffer | Uint8Array,
739739
}>}
740740
*/
741741
export async function load(url, context, defaultLoad) {

0 commit comments

Comments
 (0)