Skip to content

Commit e19fe20

Browse files
committed
Update API baseline
1 parent 56c9473 commit e19fe20

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

tests/baselines/reference/api/typescript.d.ts

+6-13
Original file line numberDiff line numberDiff line change
@@ -5894,21 +5894,14 @@ declare namespace ts {
58945894
hasNoDefaultLib: boolean;
58955895
languageVersion: ScriptTarget;
58965896
/**
5897-
* When `module` is `Node16` or `NodeNext`, this field controls whether the
5898-
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
5899-
* module. This is derived by the module resolver as it looks up the file, since
5900-
* it is derived from either the file extension of the module, or the containing
5901-
* `package.json` context, and affects both checking and emit.
5897+
* This field controls whether the source file in question is an ESNext-output-format file,
5898+
* or a CommonJS-output-format module. This is derived by the module resolver as it looks
5899+
* up the file, since it is derived from either the file extension of the module, or the
5900+
* containing `package.json` context, and may affect both checking and emit, depending on
5901+
* `module` and `moduleResolution` compiler options.
59025902
*
59035903
* It is _public_ so that (pre)transformers can set this field,
5904-
* since it switches the builtin `node` module transform. Generally speaking, if unset,
5905-
* the field is treated as though it is `ModuleKind.CommonJS`.
5906-
*
5907-
* Note that this field is only set by the module resolution process when
5908-
* `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting
5909-
* of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution`
5910-
* of `node`). If so, this field will be unset and source files will be considered to be
5911-
* CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
5904+
* since it switches the builtin `node` module transform.
59125905
*/
59135906
impliedNodeFormat?: ResolutionMode;
59145907
}

0 commit comments

Comments
 (0)