Skip to content

Commit 99018c5

Browse files
authored
doc(es/types): Document outFileExtension (#10265)
**Description:** Add type definition for `outFileExtension`
1 parent 7ecd807 commit 99018c5

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

bindings/binding_core_wasm/src/types.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,12 @@ export interface BaseModuleConfig {
10861086
* ```
10871087
*/
10881088
importInterop?: "swc" | "babel" | "node" | "none";
1089+
/**
1090+
* Output extension for generated files.
1091+
*
1092+
* Defaults to `js`.
1093+
*/
1094+
outFileExtension?: "js" | "mjs" | "cjs";
10891095
/**
10901096
* Emits `cjs-module-lexer` annotation
10911097
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.

bindings/binding_minifier_wasm/src/types.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,12 @@ export interface BaseModuleConfig {
10871087
* ```
10881088
*/
10891089
importInterop?: "swc" | "babel" | "node" | "none";
1090+
/**
1091+
* Output extension for generated files.
1092+
*
1093+
* Defaults to `js`.
1094+
*/
1095+
outFileExtension?: "js" | "mjs" | "cjs";
10901096
/**
10911097
* Emits `cjs-module-lexer` annotation
10921098
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.

packages/types/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,12 @@ export interface BaseModuleConfig {
11551155
* ```
11561156
*/
11571157
importInterop?: "swc" | "babel" | "node" | "none";
1158+
/**
1159+
* Output extension for generated files.
1160+
*
1161+
* Defaults to `js`.
1162+
*/
1163+
outFileExtension?: "js" | "mjs" | "cjs";
11581164
/**
11591165
* Emits `cjs-module-lexer` annotation
11601166
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.

0 commit comments

Comments
 (0)