@schematics/angular 14.0.0-next.3 → 14.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-shell/index.js +6 -2
- package/app-shell/schema.d.ts +3 -3
- package/app-shell/schema.json +3 -3
- package/application/schema.d.ts +1 -1
- package/application/schema.json +1 -1
- package/class/schema.json +1 -2
- package/collection.json +1 -4
- package/component/index.js +5 -1
- package/directive/index.js +5 -1
- package/e2e/e2e-long.md +1 -1
- package/e2e/index.js +6 -0
- package/e2e/schema.d.ts +1 -1
- package/e2e/schema.json +1 -1
- package/interface/schema.json +0 -1
- package/module/index.js +5 -1
- package/package.json +4 -4
- package/pipe/index.js +5 -1
- package/service-worker/index.js +7 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +7 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +29 -16
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +4866 -3030
- package/universal/index.js +11 -2
- package/universal/schema.d.ts +1 -1
- package/universal/schema.json +1 -1
- package/utility/ast-utils.js +5 -1
- package/utility/latest-versions/package.json +3 -3
- package/utility/ng-ast-utils.js +6 -2
- package/utility/test/index.js +5 -1
- package/workspace/files/README.md.template +1 -1
- package/workspace/files/package.json.template +1 -2
package/app-shell/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -105,7 +109,7 @@ function validateProject(mainPath) {
|
|
|
105
109
|
const tmpl = getComponentTemplateInfo(host, componentPath);
|
|
106
110
|
const template = getComponentTemplate(host, componentPath, tmpl);
|
|
107
111
|
if (!routerOutletCheckRegex.test(template)) {
|
|
108
|
-
const errorMsg = `Prerequisite for
|
|
112
|
+
const errorMsg = `Prerequisite for application shell is to define a router-outlet in your root component.`;
|
|
109
113
|
context.logger.error(errorMsg);
|
|
110
114
|
throw new schematics_1.SchematicsException(errorMsg);
|
|
111
115
|
}
|
package/app-shell/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generates an
|
|
2
|
+
* Generates an application shell for running a server-side version of an app.
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ export interface Schema {
|
|
|
7
7
|
*/
|
|
8
8
|
appDir?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The application ID to use in withServerTransition().
|
|
11
11
|
*/
|
|
12
12
|
appId?: string;
|
|
13
13
|
/**
|
|
@@ -27,7 +27,7 @@ export interface Schema {
|
|
|
27
27
|
*/
|
|
28
28
|
rootModuleFileName?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Route path used to produce the
|
|
30
|
+
* Route path used to produce the application shell.
|
|
31
31
|
*/
|
|
32
32
|
route?: string;
|
|
33
33
|
}
|
package/app-shell/schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "SchematicsAngularAppShell",
|
|
4
4
|
"title": "Angular AppShell Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"description": "Generates an
|
|
6
|
+
"description": "Generates an application shell for running a server-side version of an app.",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"long-description": "./app-shell-long.md",
|
|
9
9
|
"properties": {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"route": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"description": "Route path used to produce the
|
|
19
|
+
"description": "Route path used to produce the application shell.",
|
|
20
20
|
"default": "shell"
|
|
21
21
|
},
|
|
22
22
|
"appId": {
|
|
23
23
|
"type": "string",
|
|
24
24
|
"format": "html-selector",
|
|
25
|
-
"description": "The
|
|
25
|
+
"description": "The application ID to use in withServerTransition().",
|
|
26
26
|
"default": "serverApp"
|
|
27
27
|
},
|
|
28
28
|
"main": {
|
package/application/schema.d.ts
CHANGED
package/application/schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "SchematicsAngularApp",
|
|
4
4
|
"title": "Angular Application Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"description": "Generates a new basic
|
|
6
|
+
"description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"projectRoot": {
|
package/class/schema.json
CHANGED
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"type": {
|
|
38
38
|
"type": "string",
|
|
39
|
-
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
40
|
-
"default": ""
|
|
39
|
+
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
42
|
"required": ["name"]
|
package/collection.json
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"hidden": true
|
|
14
14
|
},
|
|
15
15
|
"service-worker": {
|
|
16
|
-
"aliases": ["serviceWorker"],
|
|
17
16
|
"factory": "./service-worker",
|
|
18
17
|
"description": "Initializes a service worker setup.",
|
|
19
18
|
"schema": "./service-worker/schema.json"
|
|
@@ -102,9 +101,8 @@
|
|
|
102
101
|
"hidden": true
|
|
103
102
|
},
|
|
104
103
|
"app-shell": {
|
|
105
|
-
"aliases": ["appShell"],
|
|
106
104
|
"factory": "./app-shell",
|
|
107
|
-
"description": "Create an
|
|
105
|
+
"description": "Create an application shell.",
|
|
108
106
|
"schema": "./app-shell/schema.json"
|
|
109
107
|
},
|
|
110
108
|
"library": {
|
|
@@ -114,7 +112,6 @@
|
|
|
114
112
|
"description": "Generate a library project for Angular."
|
|
115
113
|
},
|
|
116
114
|
"web-worker": {
|
|
117
|
-
"aliases": ["webWorker"],
|
|
118
115
|
"factory": "./web-worker",
|
|
119
116
|
"schema": "./web-worker/schema.json",
|
|
120
117
|
"description": "Create a Web Worker."
|
package/component/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/directive/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/e2e/e2e-long.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
The e2e tests are created in a separate
|
|
1
|
+
The e2e tests are created in a separate application in the `projects` folder of the workspace,
|
|
2
2
|
next to the project being tested.
|
package/e2e/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const core_1 = require("@angular-devkit/core");
|
|
|
11
11
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
12
|
const dependencies_1 = require("../utility/dependencies");
|
|
13
13
|
const json_file_1 = require("../utility/json-file");
|
|
14
|
+
const latest_versions_1 = require("../utility/latest-versions");
|
|
14
15
|
const paths_1 = require("../utility/paths");
|
|
15
16
|
const workspace_1 = require("../utility/workspace");
|
|
16
17
|
const workspace_models_1 = require("../utility/workspace-models");
|
|
@@ -74,6 +75,11 @@ function default_1(options) {
|
|
|
74
75
|
name: 'ts-node',
|
|
75
76
|
version: '~9.1.1',
|
|
76
77
|
},
|
|
78
|
+
{
|
|
79
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
|
80
|
+
name: '@types/node',
|
|
81
|
+
version: latest_versions_1.latestVersions['@types/node'],
|
|
82
|
+
},
|
|
77
83
|
].forEach((dep) => (0, dependencies_1.addPackageJsonDependency)(host, dep)),
|
|
78
84
|
addScriptsToPackageJson(),
|
|
79
85
|
]);
|
package/e2e/schema.d.ts
CHANGED
package/e2e/schema.json
CHANGED
package/interface/schema.json
CHANGED
package/module/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.6",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"schematics": "./collection.json",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
19
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
18
|
+
"@angular-devkit/core": "14.0.0-next.6",
|
|
19
|
+
"@angular-devkit/schematics": "14.0.0-next.6",
|
|
20
20
|
"jsonc-parser": "3.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/angular/angular-cli.git"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "^
|
|
27
|
+
"node": "^14.15.0 || >=16.10.0",
|
|
28
28
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
29
29
|
"yarn": ">= 1.13.0"
|
|
30
30
|
},
|
package/pipe/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/service-worker/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -89,11 +93,11 @@ function updateAppModule(mainPath) {
|
|
|
89
93
|
host.commitUpdate(recorder);
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
|
-
// register SW in
|
|
96
|
+
// register SW in application module
|
|
93
97
|
const importText = core_1.tags.stripIndent `
|
|
94
98
|
ServiceWorkerModule.register('ngsw-worker.js', {
|
|
95
99
|
enabled: ${importModule}.production,
|
|
96
|
-
// Register the ServiceWorker as soon as the
|
|
100
|
+
// Register the ServiceWorker as soon as the application is stable
|
|
97
101
|
// or after 30 seconds (whichever comes first).
|
|
98
102
|
registrationStrategy: 'registerWhenStable:30000'
|
|
99
103
|
})
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
load("//tools:defaults.bzl", "ts_library")
|
|
2
2
|
|
|
3
|
-
# files fetched on
|
|
4
|
-
# https://github.com/microsoft/TypeScript/releases/tag/v4.
|
|
3
|
+
# files fetched on 2022-03-10 from
|
|
4
|
+
# https://github.com/microsoft/TypeScript/releases/tag/v4.6.2
|
|
5
|
+
|
|
6
|
+
# Commands to download:
|
|
7
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
|
|
8
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
|
|
9
|
+
|
|
5
10
|
licenses(["notice"]) # Apache 2.0
|
|
6
11
|
|
|
7
12
|
exports_files([
|
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "4.
|
|
17
|
+
const versionMajorMinor = "4.6";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -572,7 +572,7 @@ declare namespace ts {
|
|
|
572
572
|
}
|
|
573
573
|
export interface JSDocContainer {
|
|
574
574
|
}
|
|
575
|
-
export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken;
|
|
575
|
+
export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | ExportSpecifier | EndOfFileToken;
|
|
576
576
|
export type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
577
577
|
export type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
578
578
|
export type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
@@ -897,7 +897,7 @@ declare namespace ts {
|
|
|
897
897
|
export interface TypePredicateNode extends TypeNode {
|
|
898
898
|
readonly kind: SyntaxKind.TypePredicate;
|
|
899
899
|
readonly parent: SignatureDeclaration | JSDocTypeExpression;
|
|
900
|
-
readonly assertsModifier?:
|
|
900
|
+
readonly assertsModifier?: AssertsKeyword;
|
|
901
901
|
readonly parameterName: Identifier | ThisTypeNode;
|
|
902
902
|
readonly type?: TypeNode;
|
|
903
903
|
}
|
|
@@ -968,7 +968,7 @@ declare namespace ts {
|
|
|
968
968
|
}
|
|
969
969
|
export interface MappedTypeNode extends TypeNode, Declaration {
|
|
970
970
|
readonly kind: SyntaxKind.MappedType;
|
|
971
|
-
readonly readonlyToken?:
|
|
971
|
+
readonly readonlyToken?: ReadonlyKeyword | PlusToken | MinusToken;
|
|
972
972
|
readonly typeParameter: TypeParameterDeclaration;
|
|
973
973
|
readonly nameType?: TypeNode;
|
|
974
974
|
readonly questionToken?: QuestionToken | PlusToken | MinusToken;
|
|
@@ -1465,7 +1465,7 @@ declare namespace ts {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
export interface ForOfStatement extends IterationStatement {
|
|
1467
1467
|
readonly kind: SyntaxKind.ForOfStatement;
|
|
1468
|
-
readonly awaitModifier?:
|
|
1468
|
+
readonly awaitModifier?: AwaitKeyword;
|
|
1469
1469
|
readonly initializer: ForInitializer;
|
|
1470
1470
|
readonly expression: Expression;
|
|
1471
1471
|
}
|
|
@@ -1652,7 +1652,7 @@ declare namespace ts {
|
|
|
1652
1652
|
readonly kind: SyntaxKind.AssertEntry;
|
|
1653
1653
|
readonly parent: AssertClause;
|
|
1654
1654
|
readonly name: AssertionKey;
|
|
1655
|
-
readonly value:
|
|
1655
|
+
readonly value: Expression;
|
|
1656
1656
|
}
|
|
1657
1657
|
export interface AssertClause extends Node {
|
|
1658
1658
|
readonly kind: SyntaxKind.AssertClause;
|
|
@@ -1702,7 +1702,7 @@ declare namespace ts {
|
|
|
1702
1702
|
readonly name: Identifier;
|
|
1703
1703
|
readonly isTypeOnly: boolean;
|
|
1704
1704
|
}
|
|
1705
|
-
export interface ExportSpecifier extends NamedDeclaration {
|
|
1705
|
+
export interface ExportSpecifier extends NamedDeclaration, JSDocContainer {
|
|
1706
1706
|
readonly kind: SyntaxKind.ExportSpecifier;
|
|
1707
1707
|
readonly parent: NamedExports;
|
|
1708
1708
|
readonly isTypeOnly: boolean;
|
|
@@ -1720,19 +1720,23 @@ declare namespace ts {
|
|
|
1720
1720
|
readonly parent: ImportClause & {
|
|
1721
1721
|
readonly isTypeOnly: true;
|
|
1722
1722
|
};
|
|
1723
|
-
} | ImportSpecifier & {
|
|
1723
|
+
} | ImportSpecifier & ({
|
|
1724
|
+
readonly isTypeOnly: true;
|
|
1725
|
+
} | {
|
|
1724
1726
|
readonly parent: NamedImports & {
|
|
1725
1727
|
readonly parent: ImportClause & {
|
|
1726
1728
|
readonly isTypeOnly: true;
|
|
1727
1729
|
};
|
|
1728
1730
|
};
|
|
1729
|
-
} | ExportSpecifier & {
|
|
1731
|
+
}) | ExportSpecifier & ({
|
|
1732
|
+
readonly isTypeOnly: true;
|
|
1733
|
+
} | {
|
|
1730
1734
|
readonly parent: NamedExports & {
|
|
1731
1735
|
readonly parent: ExportDeclaration & {
|
|
1732
1736
|
readonly isTypeOnly: true;
|
|
1733
1737
|
};
|
|
1734
1738
|
};
|
|
1735
|
-
};
|
|
1739
|
+
});
|
|
1736
1740
|
/**
|
|
1737
1741
|
* This is either an `export =` or an `export default` declaration.
|
|
1738
1742
|
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
|
|
@@ -3078,6 +3082,7 @@ declare namespace ts {
|
|
|
3078
3082
|
ES2019 = 6,
|
|
3079
3083
|
ES2020 = 7,
|
|
3080
3084
|
ES2021 = 8,
|
|
3085
|
+
ES2022 = 9,
|
|
3081
3086
|
ESNext = 99,
|
|
3082
3087
|
JSON = 100,
|
|
3083
3088
|
Latest = 99
|
|
@@ -3343,7 +3348,7 @@ declare namespace ts {
|
|
|
3343
3348
|
createTrue(): TrueLiteral;
|
|
3344
3349
|
createFalse(): FalseLiteral;
|
|
3345
3350
|
createModifier<T extends ModifierSyntaxKind>(kind: T): ModifierToken<T>;
|
|
3346
|
-
createModifiersFromModifierFlags(flags: ModifierFlags): Modifier[];
|
|
3351
|
+
createModifiersFromModifierFlags(flags: ModifierFlags): Modifier[] | undefined;
|
|
3347
3352
|
createQualifiedName(left: EntityName, right: string | Identifier): QualifiedName;
|
|
3348
3353
|
updateQualifiedName(node: QualifiedName, left: EntityName, right: Identifier): QualifiedName;
|
|
3349
3354
|
createComputedPropertyName(expression: Expression): ComputedPropertyName;
|
|
@@ -3575,8 +3580,8 @@ declare namespace ts {
|
|
|
3575
3580
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3576
3581
|
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3577
3582
|
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3578
|
-
createAssertEntry(name: AssertionKey, value:
|
|
3579
|
-
updateAssertEntry(node: AssertEntry, name: AssertionKey, value:
|
|
3583
|
+
createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
|
|
3584
|
+
updateAssertEntry(node: AssertEntry, name: AssertionKey, value: Expression): AssertEntry;
|
|
3580
3585
|
createNamespaceImport(name: Identifier): NamespaceImport;
|
|
3581
3586
|
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
|
|
3582
3587
|
createNamespaceExport(name: Identifier): NamespaceExport;
|
|
@@ -5351,7 +5356,11 @@ declare namespace ts {
|
|
|
5351
5356
|
traceResolution?: boolean;
|
|
5352
5357
|
[option: string]: CompilerOptionsValue | undefined;
|
|
5353
5358
|
}
|
|
5354
|
-
type ReportEmitErrorSummary = (errorCount: number) => void;
|
|
5359
|
+
type ReportEmitErrorSummary = (errorCount: number, filesInError: (ReportFileInError | undefined)[]) => void;
|
|
5360
|
+
interface ReportFileInError {
|
|
5361
|
+
fileName: string;
|
|
5362
|
+
line: number;
|
|
5363
|
+
}
|
|
5355
5364
|
interface SolutionBuilderHostBase<T extends BuilderProgram> extends ProgramHost<T> {
|
|
5356
5365
|
createDirectory?(path: string): void;
|
|
5357
5366
|
/**
|
|
@@ -5559,6 +5568,7 @@ declare namespace ts {
|
|
|
5559
5568
|
isTypeParameter(): this is TypeParameter;
|
|
5560
5569
|
isClassOrInterface(): this is InterfaceType;
|
|
5561
5570
|
isClass(): this is InterfaceType;
|
|
5571
|
+
isIndexType(): this is IndexType;
|
|
5562
5572
|
}
|
|
5563
5573
|
interface TypeReference {
|
|
5564
5574
|
typeArguments?: readonly Type[];
|
|
@@ -5567,6 +5577,7 @@ declare namespace ts {
|
|
|
5567
5577
|
getDeclaration(): SignatureDeclaration;
|
|
5568
5578
|
getTypeParameters(): TypeParameter[] | undefined;
|
|
5569
5579
|
getParameters(): Symbol[];
|
|
5580
|
+
getTypeParameterAtPosition(pos: number): Type;
|
|
5570
5581
|
getReturnType(): Type;
|
|
5571
5582
|
getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[];
|
|
5572
5583
|
getJsDocTags(): JSDocTagInfo[];
|
|
@@ -5753,8 +5764,9 @@ declare namespace ts {
|
|
|
5753
5764
|
* @param position A zero-based index of the character where you want the entries
|
|
5754
5765
|
* @param options An object describing how the request was triggered and what kinds
|
|
5755
5766
|
* of code actions can be returned with the completions.
|
|
5767
|
+
* @param formattingSettings settings needed for calling formatting functions.
|
|
5756
5768
|
*/
|
|
5757
|
-
getCompletionsAtPosition(fileName: string, position: number, options: GetCompletionsAtPositionOptions | undefined): WithMetadata<CompletionInfo> | undefined;
|
|
5769
|
+
getCompletionsAtPosition(fileName: string, position: number, options: GetCompletionsAtPositionOptions | undefined, formattingSettings?: FormatCodeSettings): WithMetadata<CompletionInfo> | undefined;
|
|
5758
5770
|
/**
|
|
5759
5771
|
* Gets the extended details for a completion entry retrieved from `getCompletionsAtPosition`.
|
|
5760
5772
|
*
|
|
@@ -6586,6 +6598,7 @@ declare namespace ts {
|
|
|
6586
6598
|
externalModuleName = "external module name",
|
|
6587
6599
|
/**
|
|
6588
6600
|
* <JsxTagName attribute1 attribute2={0} />
|
|
6601
|
+
* @deprecated
|
|
6589
6602
|
*/
|
|
6590
6603
|
jsxAttribute = "JSX attribute",
|
|
6591
6604
|
/** String literal */
|
|
@@ -6855,7 +6868,7 @@ declare namespace ts {
|
|
|
6855
6868
|
/** @deprecated Use `factory.createModifier` or the factory supplied by your transformation context instead. */
|
|
6856
6869
|
const createModifier: <T extends ModifierSyntaxKind>(kind: T) => ModifierToken<T>;
|
|
6857
6870
|
/** @deprecated Use `factory.createModifiersFromModifierFlags` or the factory supplied by your transformation context instead. */
|
|
6858
|
-
const createModifiersFromModifierFlags: (flags: ModifierFlags) => Modifier[];
|
|
6871
|
+
const createModifiersFromModifierFlags: (flags: ModifierFlags) => Modifier[] | undefined;
|
|
6859
6872
|
/** @deprecated Use `factory.createQualifiedName` or the factory supplied by your transformation context instead. */
|
|
6860
6873
|
const createQualifiedName: (left: EntityName, right: string | Identifier) => QualifiedName;
|
|
6861
6874
|
/** @deprecated Use `factory.updateQualifiedName` or the factory supplied by your transformation context instead. */
|