Skip to content

Commit 7c41f32

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 f30d6bc commit 7c41f32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/esm.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ Node.js module specifier resolution behavior_ when calling `defaultResolve`, the
683683
/**
684684
* @param {string} specifier
685685
* @param {{
686-
* conditions: !Array<string>,
687-
* parentURL: !(string | undefined),
686+
* conditions: string[],
687+
* parentURL: string | undefined,
688688
* }} context
689689
* @param {Function} defaultResolve
690690
* @returns {Promise<{ url: string }>}
@@ -777,8 +777,8 @@ format to a supported one, for example `yaml` to `module`.
777777
}} context If resolve settled with a `format`, that value is included here.
778778
* @param {Function} defaultLoad
779779
* @returns {Promise<{
780-
format: !string,
781-
source: !(string | ArrayBuffer | SharedArrayBuffer | Uint8Array),
780+
format: string,
781+
source: string | ArrayBuffer | SharedArrayBuffer | Uint8Array,
782782
}>}
783783
*/
784784
export async function load(url, context, defaultLoad) {

0 commit comments

Comments
 (0)