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) {