Skip to content

Commit 005e933

Browse files
authored
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 610696a commit 005e933

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
@@ -684,8 +684,8 @@ Node.js module specifier resolution behavior_ when calling `defaultResolve`, the
684684
/**
685685
* @param {string} specifier
686686
* @param {{
687-
* conditions: !Array<string>,
688-
* parentURL: !(string | undefined),
687+
* conditions: string[],
688+
* parentURL: string | undefined,
689689
* }} context
690690
* @param {Function} defaultResolve
691691
* @returns {Promise<{ url: string }>}
@@ -778,8 +778,8 @@ format to a supported one, for example `yaml` to `module`.
778778
}} context If resolve settled with a `format`, that value is included here.
779779
* @param {Function} defaultLoad
780780
* @returns {Promise<{
781-
format: !string,
782-
source: !(string | ArrayBuffer | SharedArrayBuffer | Uint8Array),
781+
format: string,
782+
source: string | ArrayBuffer | SharedArrayBuffer | Uint8Array,
783783
}>}
784784
*/
785785
export async function load(url, context, defaultLoad) {

0 commit comments

Comments
 (0)