From 3a2a1998e522462216d72c9d1e9da1829f66d7da Mon Sep 17 00:00:00 2001
From: James <5511220+Zamiell@users.noreply.github.com>
Date: Fri, 21 Jul 2023 16:13:19 -0400
Subject: [PATCH 1/5] chore: update tslib
---
package.json | 2 +-
.../en/project-config/Compiler Options.md | 34 ++++-----
.../scripts/types/AllFilenames.d.ts | 5 +-
packages/ts-twoslasher/README.md | 74 +++++++++----------
.../scripts/schema/result/schema.json | 2 +-
yarn.lock | 8 +-
6 files changed, 63 insertions(+), 62 deletions(-)
diff --git a/package.json b/package.json
index 8c569f590a3f..8735e0477768 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"@types/estree": "0.0.46",
"node-gyp": "5.1.0",
"typescript": "5.0.2",
- "tslib": "2.1.0",
+ "tslib": "2.6.0",
"prettier": "^2.0.2",
"shelljs": "0.8.4",
"sharp": "0.28.1"
diff --git a/packages/documentation/copy/en/project-config/Compiler Options.md b/packages/documentation/copy/en/project-config/Compiler Options.md
index 93fd7c43da6c..f9e45d9154c2 100644
--- a/packages/documentation/copy/en/project-config/Compiler Options.md
+++ b/packages/documentation/copy/en/project-config/Compiler Options.md
@@ -305,7 +305,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
--allowSyntheticDefaultImports |
boolean
|
- true if esModuleInterop is enabled, module is system, or moduleResolution is bundler, false otherwise.
+ | true if esModuleInterop is enabled, module is system, or moduleResolution is bundler; false otherwise.
|
|
@@ -349,7 +349,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --alwaysStrict |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -426,7 +426,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --declaration |
boolean
|
- true if composite, false otherwise.
+ | true if composite; false otherwise.
|
|
@@ -558,7 +558,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --esModuleInterop |
boolean
|
- true if module is node16 or nodenext, false otherwise.
+ | true if module is node16 or nodenext; false otherwise.
|
|
@@ -657,7 +657,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --incremental |
boolean
|
- true if composite, false otherwise.
+ | true if composite; false otherwise.
|
|
@@ -811,7 +811,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --module |
none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, or nodenext
|
- CommonJS if target is ES3 or ES5, ES6/ES2015 otherwise.
+ | CommonJS if target is ES3 or ES5; ES6/ES2015 otherwise.
|
|
@@ -826,14 +826,14 @@ tsc app.ts util.ts --target esnext --outfile index.js
|
|
- Control what method is used to detect the whether a JS file is a module.
+Specify what method is used to detect whether a file is a script or a module.
|
--moduleResolution |
classic, node10/node, node16, nodenext, or bundler
|
- Classic if module is AMD, UMD, System or ES6/ES2015, Matches if module is node16 or nodenext, Node otherwise.
+ | Classic if module is AMD, UMD, System, or ES6/ES2015; Matches if module is node16 or nodenext; Node otherwise.
|
|
@@ -921,7 +921,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --noImplicitAny |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -954,7 +954,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --noImplicitThis |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -1108,7 +1108,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --preserveConstEnums |
boolean
|
- true if isolatedModules, false otherwise.
+ | true if isolatedModules; false otherwise.
|
|
@@ -1295,7 +1295,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --strictBindCallApply |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -1306,7 +1306,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --strictFunctionTypes |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -1317,7 +1317,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --strictNullChecks |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -1328,7 +1328,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --strictPropertyInitialization |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
@@ -1427,7 +1427,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --useDefineForClassFields |
boolean
|
- true if target is ES2022 or higher, including ESNext, false otherwise.
+ | true if target is ES2022 or higher, including ESNext; false otherwise.
|
|
@@ -1438,7 +1438,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
| --useUnknownInCatchVariables |
boolean
|
- true if strict, false otherwise.
+ | true if strict; false otherwise.
|
|
diff --git a/packages/documentation/scripts/types/AllFilenames.d.ts b/packages/documentation/scripts/types/AllFilenames.d.ts
index 84d16f233e88..fae7ddd2c9e8 100644
--- a/packages/documentation/scripts/types/AllFilenames.d.ts
+++ b/packages/documentation/scripts/types/AllFilenames.d.ts
@@ -57,8 +57,8 @@ export type AllDocsPages =
| "reference/Advanced Types.md"
| "reference/Declaration Merging.md"
| "reference/Decorators.md"
- | "reference/ESM Support for Node.md"
| "reference/Enums.md"
+ | "reference/ESM Support for Node.md"
| "reference/Iterators and Generators.md"
| "reference/JSX.md"
| "reference/Mixins.md"
@@ -110,8 +110,9 @@ export type AllDocsPages =
| "release-notes/TypeScript 4.8.md"
| "release-notes/TypeScript 4.9.md"
| "release-notes/TypeScript 5.0.md"
- | "tutorials/ASP.NET Core.md"
+ | "release-notes/TypeScript 5.1.md"
| "tutorials/Angular.md"
+ | "tutorials/ASP.NET Core.md"
| "tutorials/Babel with TypeScript.md"
| "tutorials/DOM Manipulation.md"
| "tutorials/Gulp.md"
diff --git a/packages/ts-twoslasher/README.md b/packages/ts-twoslasher/README.md
index 9e53418e98e5..06e08d9fec3c 100755
--- a/packages/ts-twoslasher/README.md
+++ b/packages/ts-twoslasher/README.md
@@ -583,43 +583,6 @@ Turns to:
> }
> ```
-#### `import_files.ts`
-
-```ts
-// @filename: file-with-export.ts
-export const helloWorld = "Example string"
-
-// @filename: index.ts
-import { helloWorld } from "./file-with-export"
-console.log(helloWorld)
-```
-
-Turns to:
-
-> ```ts
-> // @filename: file-with-export.ts
-> export const helloWorld = "Example string"
->
-> // @filename: index.ts
-> import { helloWorld } from "./file-with-export"
-> console.log(helloWorld)
-> ```
-
-> With:
-
-> ```json
-> {
-> "code": "See above",
-> "extension": "ts",
-> "highlights": [],
-> "queries": [],
-> "staticQuickInfos": "[ 5 items ]",
-> "errors": [],
-> "playgroundURL": "https://www.typescriptlang.org/play/#code/PTAEAEDMEsBsFMB2BDAtvAXKGCC0B3aAFwAtd4APABwHsAnIgOiIGcAoS2h0AYxsRZFQJeLFg0A6vVgATUAF5QAIgCiFNFQShBdaIgDmSgNxs2ICDiRpMoPTMrN20VFyEBvEWMnSZAX2x0NKjKjMCWBMRknPRESmx8AjQIjOL6ABSe4lJ0sgCUbEA",
-> "tags": []
-> }
-> ```
-
#### `importsModules.ts`
```ts
@@ -673,6 +636,43 @@ Turns to:
> }
> ```
+#### `import_files.ts`
+
+```ts
+// @filename: file-with-export.ts
+export const helloWorld = "Example string"
+
+// @filename: index.ts
+import { helloWorld } from "./file-with-export"
+console.log(helloWorld)
+```
+
+Turns to:
+
+> ```ts
+> // @filename: file-with-export.ts
+> export const helloWorld = "Example string"
+>
+> // @filename: index.ts
+> import { helloWorld } from "./file-with-export"
+> console.log(helloWorld)
+> ```
+
+> With:
+
+> ```json
+> {
+> "code": "See above",
+> "extension": "ts",
+> "highlights": [],
+> "queries": [],
+> "staticQuickInfos": "[ 5 items ]",
+> "errors": [],
+> "playgroundURL": "https://www.typescriptlang.org/play/#code/PTAEAEDMEsBsFMB2BDAtvAXKGCC0B3aAFwAtd4APABwHsAnIgOiIGcAoS2h0AYxsRZFQJeLFg0A6vVgATUAF5QAIgCiFNFQShBdaIgDmSgNxs2ICDiRpMoPTMrN20VFyEBvEWMnSZAX2x0NKjKjMCWBMRknPRESmx8AjQIjOL6ABSe4lJ0sgCUbEA",
+> "tags": []
+> }
+> ```
+
#### `query.ts`
```ts
diff --git a/packages/tsconfig-reference/scripts/schema/result/schema.json b/packages/tsconfig-reference/scripts/schema/result/schema.json
index 8b3782ac83a4..b136f3655f5f 100644
--- a/packages/tsconfig-reference/scripts/schema/result/schema.json
+++ b/packages/tsconfig-reference/scripts/schema/result/schema.json
@@ -345,7 +345,7 @@
"markdownDescription": "Specify what module code is generated.\n\nSee more: https://www.typescriptlang.org/tsconfig#module"
},
"moduleDetection": {
- "description": "Control what method is used to detect the whether a JS file is a module.",
+ "description": "Specify what method is used to detect whether a file is a script or a module.",
"type": "string",
"enum": ["auto", "legacy", "force"],
"default": "auto"
diff --git a/yarn.lock b/yarn.lock
index 0721e82f7c60..5ad85c6499bb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -28644,10 +28644,10 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
-"tslib@npm:2.1.0":
- version: 2.1.0
- resolution: "tslib@npm:2.1.0"
- checksum: aa189c8179de0427b0906da30926fd53c59d96ec239dff87d6e6bc831f608df0cbd6f77c61dabc074408bd0aa0b9ae4ec35cb2c15f729e32f37274db5730cb78
+"tslib@npm:2.6.0":
+ version: 2.6.0
+ resolution: "tslib@npm:2.6.0"
+ checksum: c01066038f950016a18106ddeca4649b4d76caa76ec5a31e2a26e10586a59fceb4ee45e96719bf6c715648e7c14085a81fee5c62f7e9ebee68e77a5396e5538f
languageName: node
linkType: hard
From 8df886e5e955cb1a72a0a9a24d7c5b14a9a437c0 Mon Sep 17 00:00:00 2001
From: James <5511220+Zamiell@users.noreply.github.com>
Date: Fri, 21 Jul 2023 17:22:16 -0400
Subject: [PATCH 2/5] Update AllFilenames.d.ts
---
packages/documentation/scripts/types/AllFilenames.d.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/scripts/types/AllFilenames.d.ts b/packages/documentation/scripts/types/AllFilenames.d.ts
index cfd4f18b6da2..2e4d51a4747c 100644
--- a/packages/documentation/scripts/types/AllFilenames.d.ts
+++ b/packages/documentation/scripts/types/AllFilenames.d.ts
@@ -57,8 +57,8 @@ export type AllDocsPages =
| "reference/Advanced Types.md"
| "reference/Declaration Merging.md"
| "reference/Decorators.md"
- | "reference/Enums.md"
| "reference/ESM Support for Node.md"
+ | "reference/Enums.md"
| "reference/Iterators and Generators.md"
| "reference/JSX.md"
| "reference/Mixins.md"
From 76d7f10111596baf4fa48c98fd8bc1f1ca0df895 Mon Sep 17 00:00:00 2001
From: James <5511220+Zamiell@users.noreply.github.com>
Date: Fri, 21 Jul 2023 17:22:34 -0400
Subject: [PATCH 3/5] Update AllFilenames.d.ts
---
packages/documentation/scripts/types/AllFilenames.d.ts | 1 -
1 file changed, 1 deletion(-)
diff --git a/packages/documentation/scripts/types/AllFilenames.d.ts b/packages/documentation/scripts/types/AllFilenames.d.ts
index 2e4d51a4747c..1ea8cac42d3f 100644
--- a/packages/documentation/scripts/types/AllFilenames.d.ts
+++ b/packages/documentation/scripts/types/AllFilenames.d.ts
@@ -111,7 +111,6 @@ export type AllDocsPages =
| "release-notes/TypeScript 4.9.md"
| "release-notes/TypeScript 5.0.md"
| "release-notes/TypeScript 5.1.md"
- | "tutorials/ASP.NET Core.md"
| "tutorials/Angular.md"
| "tutorials/ASP.NET Core.md"
| "tutorials/Babel with TypeScript.md"
From 1b45a71dd6fffcc5f0b0747601e483846093435d Mon Sep 17 00:00:00 2001
From: James <5511220+Zamiell@users.noreply.github.com>
Date: Fri, 21 Jul 2023 17:22:50 -0400
Subject: [PATCH 4/5] Update AllFilenames.d.ts
---
packages/documentation/scripts/types/AllFilenames.d.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/scripts/types/AllFilenames.d.ts b/packages/documentation/scripts/types/AllFilenames.d.ts
index 1ea8cac42d3f..c95e8730a27f 100644
--- a/packages/documentation/scripts/types/AllFilenames.d.ts
+++ b/packages/documentation/scripts/types/AllFilenames.d.ts
@@ -111,8 +111,8 @@ export type AllDocsPages =
| "release-notes/TypeScript 4.9.md"
| "release-notes/TypeScript 5.0.md"
| "release-notes/TypeScript 5.1.md"
- | "tutorials/Angular.md"
| "tutorials/ASP.NET Core.md"
+ | "tutorials/Angular.md"
| "tutorials/Babel with TypeScript.md"
| "tutorials/DOM Manipulation.md"
| "tutorials/Gulp.md"
From 961711f097feb3b0e9440fa17b11f6961ed6a2a3 Mon Sep 17 00:00:00 2001
From: James <5511220+Zamiell@users.noreply.github.com>
Date: Fri, 21 Jul 2023 17:23:21 -0400
Subject: [PATCH 5/5] Update README.md
---
packages/ts-twoslasher/README.md | 74 ++++++++++++++++----------------
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/packages/ts-twoslasher/README.md b/packages/ts-twoslasher/README.md
index 06e08d9fec3c..9e53418e98e5 100755
--- a/packages/ts-twoslasher/README.md
+++ b/packages/ts-twoslasher/README.md
@@ -583,6 +583,43 @@ Turns to:
> }
> ```
+#### `import_files.ts`
+
+```ts
+// @filename: file-with-export.ts
+export const helloWorld = "Example string"
+
+// @filename: index.ts
+import { helloWorld } from "./file-with-export"
+console.log(helloWorld)
+```
+
+Turns to:
+
+> ```ts
+> // @filename: file-with-export.ts
+> export const helloWorld = "Example string"
+>
+> // @filename: index.ts
+> import { helloWorld } from "./file-with-export"
+> console.log(helloWorld)
+> ```
+
+> With:
+
+> ```json
+> {
+> "code": "See above",
+> "extension": "ts",
+> "highlights": [],
+> "queries": [],
+> "staticQuickInfos": "[ 5 items ]",
+> "errors": [],
+> "playgroundURL": "https://www.typescriptlang.org/play/#code/PTAEAEDMEsBsFMB2BDAtvAXKGCC0B3aAFwAtd4APABwHsAnIgOiIGcAoS2h0AYxsRZFQJeLFg0A6vVgATUAF5QAIgCiFNFQShBdaIgDmSgNxs2ICDiRpMoPTMrN20VFyEBvEWMnSZAX2x0NKjKjMCWBMRknPRESmx8AjQIjOL6ABSe4lJ0sgCUbEA",
+> "tags": []
+> }
+> ```
+
#### `importsModules.ts`
```ts
@@ -636,43 +673,6 @@ Turns to:
> }
> ```
-#### `import_files.ts`
-
-```ts
-// @filename: file-with-export.ts
-export const helloWorld = "Example string"
-
-// @filename: index.ts
-import { helloWorld } from "./file-with-export"
-console.log(helloWorld)
-```
-
-Turns to:
-
-> ```ts
-> // @filename: file-with-export.ts
-> export const helloWorld = "Example string"
->
-> // @filename: index.ts
-> import { helloWorld } from "./file-with-export"
-> console.log(helloWorld)
-> ```
-
-> With:
-
-> ```json
-> {
-> "code": "See above",
-> "extension": "ts",
-> "highlights": [],
-> "queries": [],
-> "staticQuickInfos": "[ 5 items ]",
-> "errors": [],
-> "playgroundURL": "https://www.typescriptlang.org/play/#code/PTAEAEDMEsBsFMB2BDAtvAXKGCC0B3aAFwAtd4APABwHsAnIgOiIGcAoS2h0AYxsRZFQJeLFg0A6vVgATUAF5QAIgCiFNFQShBdaIgDmSgNxs2ICDiRpMoPTMrN20VFyEBvEWMnSZAX2x0NKjKjMCWBMRknPRESmx8AjQIjOL6ABSe4lJ0sgCUbEA",
-> "tags": []
-> }
-> ```
-
#### `query.ts`
```ts
|