From fb1ccc3d8898e71f068a3d2e2b0e5f1da5731444 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 25 Apr 2021 21:54:57 +0100 Subject: refactor(cli): rename Deno.emit() bundle options to "module" and "classic" (#10332) --- runtime/js/40_compiler_api.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/40_compiler_api.js b/runtime/js/40_compiler_api.js index b30ffc5d5..75c21b8dd 100644 --- a/runtime/js/40_compiler_api.js +++ b/runtime/js/40_compiler_api.js @@ -17,7 +17,7 @@ /** * @typedef {object} OpEmitRequest - * @property {"esm"=} bundle + * @property {"module" | "classic"=} bundle * @property {boolean=} check * @property {Record=} compilerOptions * @property {ImportMap=} importMap @@ -35,7 +35,7 @@ */ /** - * @param {OpEmitRequest} request + * @param {OpEmitRequest} request * @returns {Promise} */ function opEmit(request) { @@ -43,7 +43,7 @@ } /** - * @param {string} specifier + * @param {string} specifier * @returns {string} */ function checkRelative(specifier) { @@ -54,7 +54,7 @@ /** * @typedef {object} EmitOptions - * @property {"esm"=} bundle + * @property {"module" | "classic"=} bundle * @property {boolean=} check * @property {Record=} compilerOptions * @property {ImportMap=} importMap @@ -63,9 +63,9 @@ */ /** - * @param {string | URL} rootSpecifier + * @param {string | URL} rootSpecifier * @param {EmitOptions=} options - * @returns {Promise} + * @returns {Promise} */ function emit(rootSpecifier, options = {}) { util.log(`Deno.emit`, { rootSpecifier }); -- cgit v1.2.3