diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-04-25 21:54:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 06:54:57 +1000 |
commit | fb1ccc3d8898e71f068a3d2e2b0e5f1da5731444 (patch) | |
tree | 136206913b6ab45daaf097439f4d3640e0746fd4 /runtime/js/40_compiler_api.js | |
parent | 83bece56b01f6997cb71e9289a4d83a398cde0c8 (diff) |
refactor(cli): rename Deno.emit() bundle options to "module" and "classic" (#10332)
Diffstat (limited to 'runtime/js/40_compiler_api.js')
-rw-r--r-- | runtime/js/40_compiler_api.js | 12 |
1 files changed, 6 insertions, 6 deletions
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<string, any>=} compilerOptions * @property {ImportMap=} importMap @@ -35,7 +35,7 @@ */ /** - * @param {OpEmitRequest} request + * @param {OpEmitRequest} request * @returns {Promise<OpEmitResponse>} */ 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<string, any>=} compilerOptions * @property {ImportMap=} importMap @@ -63,9 +63,9 @@ */ /** - * @param {string | URL} rootSpecifier + * @param {string | URL} rootSpecifier * @param {EmitOptions=} options - * @returns {Promise<OpEmitResponse>} + * @returns {Promise<OpEmitResponse>} */ function emit(rootSpecifier, options = {}) { util.log(`Deno.emit`, { rootSpecifier }); |