From 7c41f32f064711512b22e8f6521a622b36b483dc Mon Sep 17 00:00:00 2001 From: Mestery Date: Mon, 29 Nov 2021 18:28:34 +0100 Subject: [PATCH] doc: fix JSDoc in ESM loaders examples PR-URL: https://github.com/nodejs/node/pull/40984 Reviewed-By: Antoine du Hamel Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: James M Snell --- doc/api/esm.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index dd6a1deca538c4..48fd7cd9631fbe 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -683,8 +683,8 @@ Node.js module specifier resolution behavior_ when calling `defaultResolve`, the /** * @param {string} specifier * @param {{ - * conditions: !Array, - * parentURL: !(string | undefined), + * conditions: string[], + * parentURL: string | undefined, * }} context * @param {Function} defaultResolve * @returns {Promise<{ url: string }>} @@ -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) {