summaryrefslogtreecommitdiff
path: root/runtime/js/40_compiler_api.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_compiler_api.js')
-rw-r--r--runtime/js/40_compiler_api.js12
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 });