File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -259,12 +259,13 @@ changes:
259259 * ` ' strip' ` Only strip type annotations without performing the transformation of TypeScript features.
260260 * ` sourceUrl` {string} Specifies the source url used in the source map.
261261* Returns: {string} The code with type annotations stripped.
262- ` module .stripTypeScriptTypes ()` removes type annotations from TypeScript code. It
263- can be used to strip type annotations from TypeScript code before running it
264- with ` vm.runInContext()` or ` vm.compileFunction()` .
265- By default, it will throw an error if the code contains TypeScript features
266- that require transformation such as ` Enums` ,
267- see [type-stripping][] for more information.
262+
263+ ` module .stripTypeScriptTypes ()` removes type annotations from TypeScript code. It
264+ can be used to strip type annotations from TypeScript code before running it
265+ with ` vm.runInContext()` or ` vm.compileFunction()` .
266+
267+ By default, it will throw an error if the code contains TypeScript features
268+ that require transformation, such as ` enum` s. See [type-stripping][] for more information.
268269
269270_WARNING_: The output of this function should not be considered stable across Node.js versions,
270271due to changes in the TypeScript parser.
You can’t perform that action at this time.
0 commit comments