@@ -1177,14 +1177,16 @@ validating the import attributes.
11771177
11781178The final value of ` format` must be one of the following:
11791179
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} |
11881190
11891191The value of ` source` is ignored for type ` ' builtin' ` because currently it is
11901192not possible to replace the value of a Node.js builtin (core) module.
0 commit comments