@@ -1177,14 +1177,16 @@ validating the import attributes.
1177
1177
1178
1178
The final value of ` format` must be one of the following:
1179
1179
1180
- | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1181
- | ------------ | ------------------------------ | -------------------------------------------------- |
1182
- | ` ' addon' ` | Load a Node.js addon | {null} |
1183
- | ` ' builtin' ` | Load a Node.js builtin module | {null} |
1184
- | ` ' commonjs' ` | Load a Node.js CommonJS module | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1185
- | ` ' json' ` | Load a JSON file | {string\| ArrayBuffer\| TypedArray} |
1186
- | ` ' module' ` | Load an ES module | {string\| ArrayBuffer\| TypedArray} |
1187
- | ` ' wasm' ` | Load a WebAssembly module | {ArrayBuffer\| TypedArray} |
1180
+ | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1181
+ | ----------------------- | ----------------------------------------------------- | -------------------------------------------------- |
1182
+ | ` ' addon' ` | Load a Node.js addon | {null} |
1183
+ | ` ' builtin' ` | Load a Node.js builtin module | {null} |
1184
+ | ` ' commonjs-typescript' ` | Load a Node.js CommonJS module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1185
+ | ` ' commonjs' ` | Load a Node.js CommonJS module | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1186
+ | ` ' json' ` | Load a JSON file | {string\| ArrayBuffer\| TypedArray} |
1187
+ | ` ' module-typescript' ` | Load an ES module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray} |
1188
+ | ` ' module' ` | Load an ES module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray} |
1189
+ | ` ' wasm' ` | Load a WebAssembly module | {ArrayBuffer\| TypedArray} |
1188
1190
1189
1191
The value of ` source` is ignored for type ` ' builtin' ` because currently it is
1190
1192
not possible to replace the value of a Node.js builtin (core) module.
0 commit comments