Skip to content

Commit 6964b53

Browse files
committed
doc: fix module.stripTypeScriptTypes indentation
PR-URL: nodejs#61992 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 27261b9 commit 6964b53

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/api/module.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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,
270271
due to changes in the TypeScript parser.

0 commit comments

Comments
 (0)