From 56adabe141c3bf072dd137d2007040df9d136493 Mon Sep 17 00:00:00 2001 From: Mestery Date: Fri, 26 Nov 2021 21:13:58 +0100 Subject: [PATCH] doc: fix JSDoc in ESM loaders examples --- 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 6d71b38638a6bf..bafb4dad8b398b 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -684,8 +684,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 }>} @@ -778,8 +778,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) {