build: update to TS 3.5

This commit is contained in:
Filipe Silva 2019-07-26 19:00:04 +01:00 committed by vikerman
parent b4c441e790
commit e8dff5718f
17 changed files with 11722 additions and 10533 deletions

View File

@ -77,11 +77,11 @@
"quicktype-core": "^6.0.15", "quicktype-core": "^6.0.15",
"temp": "^0.9.0", "temp": "^0.9.0",
"tslint": "^5.15.0", "tslint": "^5.15.0",
"typescript": "3.4.5" "typescript": "3.5.3"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler": "~8.1.0", "@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.1.0", "@angular/compiler-cli": "~8.2.0-rc.0",
"@bazel/bazel": "0.24.1", "@bazel/bazel": "0.24.1",
"@bazel/buildifier": "^0.22.0", "@bazel/buildifier": "^0.22.0",
"@bazel/jasmine": "~0.26.0", "@bazel/jasmine": "~0.26.0",

View File

@ -191,7 +191,7 @@ export async function fetchPackageMetadata(
if (response.versions) { if (response.versions) {
for (const [version, manifest] of Object.entries(response.versions)) { for (const [version, manifest] of Object.entries(response.versions)) {
metadata.versions.set(version, normalizeManifest(manifest)); metadata.versions.set(version, normalizeManifest(manifest as {}));
} }
} }

View File

@ -57,18 +57,19 @@
"worker-plugin": "3.1.0" "worker-plugin": "3.1.0"
}, },
"devDependencies": { "devDependencies": {
"@angular/animations": "~8.1.0", "@angular/animations": "~8.2.0-rc.0",
"@angular/cdk": "^8.0.0", "@angular/cdk": "^8.0.0",
"@angular/common": "~8.1.0", "@angular/common": "~8.2.0-rc.0",
"@angular/compiler": "~8.1.0", "@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.1.0", "@angular/compiler-cli": "~8.2.0-rc.0",
"@angular/core": "~8.1.0", "@angular/core": "~8.2.0-rc.0",
"@angular/forms": "~8.2.0-rc.0",
"@angular/material": "^8.0.0", "@angular/material": "^8.0.0",
"@angular/platform-browser": "~8.1.0", "@angular/platform-browser": "~8.2.0-rc.0",
"@angular/platform-browser-dynamic": "~8.1.0", "@angular/platform-browser-dynamic": "~8.2.0-rc.0",
"@angular/platform-server": "~8.1.0", "@angular/platform-server": "~8.2.0-rc.0",
"@angular/router": "~8.1.0", "@angular/router": "~8.2.0-rc.0",
"@angular/service-worker": "~8.1.0", "@angular/service-worker": "~8.2.0-rc.0",
"codelyzer": "^5.0.0", "codelyzer": "^5.0.0",
"bootstrap": "^4.0.0", "bootstrap": "^4.0.0",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
@ -86,6 +87,6 @@
}, },
"peerDependencies": { "peerDependencies": {
"@angular/compiler-cli": "^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9", "@angular/compiler-cli": "^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9",
"typescript": ">=3.1 < 3.5" "typescript": ">=3.1 < 3.6"
} }
} }

View File

@ -14,10 +14,10 @@
"ng-packagr": "^4.0.0 || ^5.0.0" "ng-packagr": "^4.0.0 || ^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler": "~8.1.0", "@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.1.0", "@angular/compiler-cli": "~8.2.0-rc.0",
"@angular-devkit/core": "0.0.0", "@angular-devkit/core": "0.0.0",
"ng-packagr": "^5.1.0", "ng-packagr": "^5.3.0",
"tslib": "^1.9.0" "tslib": "^1.10.0"
} }
} }

View File

@ -11,7 +11,7 @@
"dependencies": { "dependencies": {
"loader-utils": "1.2.3", "loader-utils": "1.2.3",
"source-map": "0.5.6", "source-map": "0.5.6",
"typescript": "3.4.5", "typescript": "3.5.3",
"webpack-sources": "1.3.0" "webpack-sources": "1.3.0"
} }
} }

View File

@ -94,7 +94,7 @@ export class FallbackEngineHost implements EngineHost<{}, {}> {
// tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989
return ((observableOf(options) as any) return ((observableOf(options) as any)
.pipe(...this._hosts .pipe(...this._hosts
.map(host => mergeMap(opt => host.transformOptions(schematic, opt, context))), .map(host => mergeMap((opt: {}) => host.transformOptions(schematic, opt, context))),
) )
) as {} as Observable<ResultT>; ) as {} as Observable<ResultT>;
} }

View File

@ -301,7 +301,7 @@ export abstract class FileSystemEngineHostBase implements FileSystemEngineHost {
// tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989
return ((observableOf(options) as any) return ((observableOf(options) as any)
.pipe( .pipe(
...this._transforms.map(tFn => mergeMap(opt => { ...this._transforms.map(tFn => mergeMap((opt: {}) => {
const newOptions = tFn(schematic, opt, context); const newOptions = tFn(schematic, opt, context);
if (isObservable(newOptions)) { if (isObservable(newOptions)) {
return newOptions; return newOptions;

View File

@ -29,13 +29,13 @@
}, },
"peerDependencies": { "peerDependencies": {
"@angular/compiler-cli": "^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9", "@angular/compiler-cli": "^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9",
"typescript": ">=3.4 < 3.5", "typescript": ">=3.4 < 3.6",
"webpack": "^4.0.0" "webpack": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler": "~8.1.0", "@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.1.0", "@angular/compiler-cli": "~8.2.0-rc.0",
"typescript": "3.4.5", "typescript": "3.5.3",
"webpack": "4.38.0" "webpack": "4.38.0"
} }
} }

View File

@ -14,7 +14,7 @@ and limitations under the License.
***************************************************************************** */ ***************************************************************************** */
declare namespace ts { declare namespace ts {
const versionMajorMinor = "3.4"; const versionMajorMinor = "3.5";
/** The version of the TypeScript compiler release */ /** The version of the TypeScript compiler release */
const version: string; const version: string;
} }
@ -72,7 +72,7 @@ declare namespace ts {
pos: number; pos: number;
end: number; end: number;
} }
type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind; type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.BacktickToken | SyntaxKind.Unknown | KeywordSyntaxKind;
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword;
type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
enum SyntaxKind { enum SyntaxKind {
@ -135,281 +135,283 @@ declare namespace ts {
QuestionToken = 56, QuestionToken = 56,
ColonToken = 57, ColonToken = 57,
AtToken = 58, AtToken = 58,
EqualsToken = 59, /** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */
PlusEqualsToken = 60, BacktickToken = 59,
MinusEqualsToken = 61, EqualsToken = 60,
AsteriskEqualsToken = 62, PlusEqualsToken = 61,
AsteriskAsteriskEqualsToken = 63, MinusEqualsToken = 62,
SlashEqualsToken = 64, AsteriskEqualsToken = 63,
PercentEqualsToken = 65, AsteriskAsteriskEqualsToken = 64,
LessThanLessThanEqualsToken = 66, SlashEqualsToken = 65,
GreaterThanGreaterThanEqualsToken = 67, PercentEqualsToken = 66,
GreaterThanGreaterThanGreaterThanEqualsToken = 68, LessThanLessThanEqualsToken = 67,
AmpersandEqualsToken = 69, GreaterThanGreaterThanEqualsToken = 68,
BarEqualsToken = 70, GreaterThanGreaterThanGreaterThanEqualsToken = 69,
CaretEqualsToken = 71, AmpersandEqualsToken = 70,
Identifier = 72, BarEqualsToken = 71,
BreakKeyword = 73, CaretEqualsToken = 72,
CaseKeyword = 74, Identifier = 73,
CatchKeyword = 75, BreakKeyword = 74,
ClassKeyword = 76, CaseKeyword = 75,
ConstKeyword = 77, CatchKeyword = 76,
ContinueKeyword = 78, ClassKeyword = 77,
DebuggerKeyword = 79, ConstKeyword = 78,
DefaultKeyword = 80, ContinueKeyword = 79,
DeleteKeyword = 81, DebuggerKeyword = 80,
DoKeyword = 82, DefaultKeyword = 81,
ElseKeyword = 83, DeleteKeyword = 82,
EnumKeyword = 84, DoKeyword = 83,
ExportKeyword = 85, ElseKeyword = 84,
ExtendsKeyword = 86, EnumKeyword = 85,
FalseKeyword = 87, ExportKeyword = 86,
FinallyKeyword = 88, ExtendsKeyword = 87,
ForKeyword = 89, FalseKeyword = 88,
FunctionKeyword = 90, FinallyKeyword = 89,
IfKeyword = 91, ForKeyword = 90,
ImportKeyword = 92, FunctionKeyword = 91,
InKeyword = 93, IfKeyword = 92,
InstanceOfKeyword = 94, ImportKeyword = 93,
NewKeyword = 95, InKeyword = 94,
NullKeyword = 96, InstanceOfKeyword = 95,
ReturnKeyword = 97, NewKeyword = 96,
SuperKeyword = 98, NullKeyword = 97,
SwitchKeyword = 99, ReturnKeyword = 98,
ThisKeyword = 100, SuperKeyword = 99,
ThrowKeyword = 101, SwitchKeyword = 100,
TrueKeyword = 102, ThisKeyword = 101,
TryKeyword = 103, ThrowKeyword = 102,
TypeOfKeyword = 104, TrueKeyword = 103,
VarKeyword = 105, TryKeyword = 104,
VoidKeyword = 106, TypeOfKeyword = 105,
WhileKeyword = 107, VarKeyword = 106,
WithKeyword = 108, VoidKeyword = 107,
ImplementsKeyword = 109, WhileKeyword = 108,
InterfaceKeyword = 110, WithKeyword = 109,
LetKeyword = 111, ImplementsKeyword = 110,
PackageKeyword = 112, InterfaceKeyword = 111,
PrivateKeyword = 113, LetKeyword = 112,
ProtectedKeyword = 114, PackageKeyword = 113,
PublicKeyword = 115, PrivateKeyword = 114,
StaticKeyword = 116, ProtectedKeyword = 115,
YieldKeyword = 117, PublicKeyword = 116,
AbstractKeyword = 118, StaticKeyword = 117,
AsKeyword = 119, YieldKeyword = 118,
AnyKeyword = 120, AbstractKeyword = 119,
AsyncKeyword = 121, AsKeyword = 120,
AwaitKeyword = 122, AnyKeyword = 121,
BooleanKeyword = 123, AsyncKeyword = 122,
ConstructorKeyword = 124, AwaitKeyword = 123,
DeclareKeyword = 125, BooleanKeyword = 124,
GetKeyword = 126, ConstructorKeyword = 125,
InferKeyword = 127, DeclareKeyword = 126,
IsKeyword = 128, GetKeyword = 127,
KeyOfKeyword = 129, InferKeyword = 128,
ModuleKeyword = 130, IsKeyword = 129,
NamespaceKeyword = 131, KeyOfKeyword = 130,
NeverKeyword = 132, ModuleKeyword = 131,
ReadonlyKeyword = 133, NamespaceKeyword = 132,
RequireKeyword = 134, NeverKeyword = 133,
NumberKeyword = 135, ReadonlyKeyword = 134,
ObjectKeyword = 136, RequireKeyword = 135,
SetKeyword = 137, NumberKeyword = 136,
StringKeyword = 138, ObjectKeyword = 137,
SymbolKeyword = 139, SetKeyword = 138,
TypeKeyword = 140, StringKeyword = 139,
UndefinedKeyword = 141, SymbolKeyword = 140,
UniqueKeyword = 142, TypeKeyword = 141,
UnknownKeyword = 143, UndefinedKeyword = 142,
FromKeyword = 144, UniqueKeyword = 143,
GlobalKeyword = 145, UnknownKeyword = 144,
BigIntKeyword = 146, FromKeyword = 145,
OfKeyword = 147, GlobalKeyword = 146,
QualifiedName = 148, BigIntKeyword = 147,
ComputedPropertyName = 149, OfKeyword = 148,
TypeParameter = 150, QualifiedName = 149,
Parameter = 151, ComputedPropertyName = 150,
Decorator = 152, TypeParameter = 151,
PropertySignature = 153, Parameter = 152,
PropertyDeclaration = 154, Decorator = 153,
MethodSignature = 155, PropertySignature = 154,
MethodDeclaration = 156, PropertyDeclaration = 155,
Constructor = 157, MethodSignature = 156,
GetAccessor = 158, MethodDeclaration = 157,
SetAccessor = 159, Constructor = 158,
CallSignature = 160, GetAccessor = 159,
ConstructSignature = 161, SetAccessor = 160,
IndexSignature = 162, CallSignature = 161,
TypePredicate = 163, ConstructSignature = 162,
TypeReference = 164, IndexSignature = 163,
FunctionType = 165, TypePredicate = 164,
ConstructorType = 166, TypeReference = 165,
TypeQuery = 167, FunctionType = 166,
TypeLiteral = 168, ConstructorType = 167,
ArrayType = 169, TypeQuery = 168,
TupleType = 170, TypeLiteral = 169,
OptionalType = 171, ArrayType = 170,
RestType = 172, TupleType = 171,
UnionType = 173, OptionalType = 172,
IntersectionType = 174, RestType = 173,
ConditionalType = 175, UnionType = 174,
InferType = 176, IntersectionType = 175,
ParenthesizedType = 177, ConditionalType = 176,
ThisType = 178, InferType = 177,
TypeOperator = 179, ParenthesizedType = 178,
IndexedAccessType = 180, ThisType = 179,
MappedType = 181, TypeOperator = 180,
LiteralType = 182, IndexedAccessType = 181,
ImportType = 183, MappedType = 182,
ObjectBindingPattern = 184, LiteralType = 183,
ArrayBindingPattern = 185, ImportType = 184,
BindingElement = 186, ObjectBindingPattern = 185,
ArrayLiteralExpression = 187, ArrayBindingPattern = 186,
ObjectLiteralExpression = 188, BindingElement = 187,
PropertyAccessExpression = 189, ArrayLiteralExpression = 188,
ElementAccessExpression = 190, ObjectLiteralExpression = 189,
CallExpression = 191, PropertyAccessExpression = 190,
NewExpression = 192, ElementAccessExpression = 191,
TaggedTemplateExpression = 193, CallExpression = 192,
TypeAssertionExpression = 194, NewExpression = 193,
ParenthesizedExpression = 195, TaggedTemplateExpression = 194,
FunctionExpression = 196, TypeAssertionExpression = 195,
ArrowFunction = 197, ParenthesizedExpression = 196,
DeleteExpression = 198, FunctionExpression = 197,
TypeOfExpression = 199, ArrowFunction = 198,
VoidExpression = 200, DeleteExpression = 199,
AwaitExpression = 201, TypeOfExpression = 200,
PrefixUnaryExpression = 202, VoidExpression = 201,
PostfixUnaryExpression = 203, AwaitExpression = 202,
BinaryExpression = 204, PrefixUnaryExpression = 203,
ConditionalExpression = 205, PostfixUnaryExpression = 204,
TemplateExpression = 206, BinaryExpression = 205,
YieldExpression = 207, ConditionalExpression = 206,
SpreadElement = 208, TemplateExpression = 207,
ClassExpression = 209, YieldExpression = 208,
OmittedExpression = 210, SpreadElement = 209,
ExpressionWithTypeArguments = 211, ClassExpression = 210,
AsExpression = 212, OmittedExpression = 211,
NonNullExpression = 213, ExpressionWithTypeArguments = 212,
MetaProperty = 214, AsExpression = 213,
SyntheticExpression = 215, NonNullExpression = 214,
TemplateSpan = 216, MetaProperty = 215,
SemicolonClassElement = 217, SyntheticExpression = 216,
Block = 218, TemplateSpan = 217,
VariableStatement = 219, SemicolonClassElement = 218,
EmptyStatement = 220, Block = 219,
ExpressionStatement = 221, VariableStatement = 220,
IfStatement = 222, EmptyStatement = 221,
DoStatement = 223, ExpressionStatement = 222,
WhileStatement = 224, IfStatement = 223,
ForStatement = 225, DoStatement = 224,
ForInStatement = 226, WhileStatement = 225,
ForOfStatement = 227, ForStatement = 226,
ContinueStatement = 228, ForInStatement = 227,
BreakStatement = 229, ForOfStatement = 228,
ReturnStatement = 230, ContinueStatement = 229,
WithStatement = 231, BreakStatement = 230,
SwitchStatement = 232, ReturnStatement = 231,
LabeledStatement = 233, WithStatement = 232,
ThrowStatement = 234, SwitchStatement = 233,
TryStatement = 235, LabeledStatement = 234,
DebuggerStatement = 236, ThrowStatement = 235,
VariableDeclaration = 237, TryStatement = 236,
VariableDeclarationList = 238, DebuggerStatement = 237,
FunctionDeclaration = 239, VariableDeclaration = 238,
ClassDeclaration = 240, VariableDeclarationList = 239,
InterfaceDeclaration = 241, FunctionDeclaration = 240,
TypeAliasDeclaration = 242, ClassDeclaration = 241,
EnumDeclaration = 243, InterfaceDeclaration = 242,
ModuleDeclaration = 244, TypeAliasDeclaration = 243,
ModuleBlock = 245, EnumDeclaration = 244,
CaseBlock = 246, ModuleDeclaration = 245,
NamespaceExportDeclaration = 247, ModuleBlock = 246,
ImportEqualsDeclaration = 248, CaseBlock = 247,
ImportDeclaration = 249, NamespaceExportDeclaration = 248,
ImportClause = 250, ImportEqualsDeclaration = 249,
NamespaceImport = 251, ImportDeclaration = 250,
NamedImports = 252, ImportClause = 251,
ImportSpecifier = 253, NamespaceImport = 252,
ExportAssignment = 254, NamedImports = 253,
ExportDeclaration = 255, ImportSpecifier = 254,
NamedExports = 256, ExportAssignment = 255,
ExportSpecifier = 257, ExportDeclaration = 256,
MissingDeclaration = 258, NamedExports = 257,
ExternalModuleReference = 259, ExportSpecifier = 258,
JsxElement = 260, MissingDeclaration = 259,
JsxSelfClosingElement = 261, ExternalModuleReference = 260,
JsxOpeningElement = 262, JsxElement = 261,
JsxClosingElement = 263, JsxSelfClosingElement = 262,
JsxFragment = 264, JsxOpeningElement = 263,
JsxOpeningFragment = 265, JsxClosingElement = 264,
JsxClosingFragment = 266, JsxFragment = 265,
JsxAttribute = 267, JsxOpeningFragment = 266,
JsxAttributes = 268, JsxClosingFragment = 267,
JsxSpreadAttribute = 269, JsxAttribute = 268,
JsxExpression = 270, JsxAttributes = 269,
CaseClause = 271, JsxSpreadAttribute = 270,
DefaultClause = 272, JsxExpression = 271,
HeritageClause = 273, CaseClause = 272,
CatchClause = 274, DefaultClause = 273,
PropertyAssignment = 275, HeritageClause = 274,
ShorthandPropertyAssignment = 276, CatchClause = 275,
SpreadAssignment = 277, PropertyAssignment = 276,
EnumMember = 278, ShorthandPropertyAssignment = 277,
UnparsedPrologue = 279, SpreadAssignment = 278,
UnparsedPrepend = 280, EnumMember = 279,
UnparsedText = 281, UnparsedPrologue = 280,
UnparsedInternalText = 282, UnparsedPrepend = 281,
UnparsedSyntheticReference = 283, UnparsedText = 282,
SourceFile = 284, UnparsedInternalText = 283,
Bundle = 285, UnparsedSyntheticReference = 284,
UnparsedSource = 286, SourceFile = 285,
InputFiles = 287, Bundle = 286,
JSDocTypeExpression = 288, UnparsedSource = 287,
JSDocAllType = 289, InputFiles = 288,
JSDocUnknownType = 290, JSDocTypeExpression = 289,
JSDocNullableType = 291, JSDocAllType = 290,
JSDocNonNullableType = 292, JSDocUnknownType = 291,
JSDocOptionalType = 293, JSDocNullableType = 292,
JSDocFunctionType = 294, JSDocNonNullableType = 293,
JSDocVariadicType = 295, JSDocOptionalType = 294,
JSDocComment = 296, JSDocFunctionType = 295,
JSDocTypeLiteral = 297, JSDocVariadicType = 296,
JSDocSignature = 298, JSDocComment = 297,
JSDocTag = 299, JSDocTypeLiteral = 298,
JSDocAugmentsTag = 300, JSDocSignature = 299,
JSDocClassTag = 301, JSDocTag = 300,
JSDocCallbackTag = 302, JSDocAugmentsTag = 301,
JSDocEnumTag = 303, JSDocClassTag = 302,
JSDocParameterTag = 304, JSDocCallbackTag = 303,
JSDocReturnTag = 305, JSDocEnumTag = 304,
JSDocThisTag = 306, JSDocParameterTag = 305,
JSDocTypeTag = 307, JSDocReturnTag = 306,
JSDocTemplateTag = 308, JSDocThisTag = 307,
JSDocTypedefTag = 309, JSDocTypeTag = 308,
JSDocPropertyTag = 310, JSDocTemplateTag = 309,
SyntaxList = 311, JSDocTypedefTag = 310,
NotEmittedStatement = 312, JSDocPropertyTag = 311,
PartiallyEmittedExpression = 313, SyntaxList = 312,
CommaListExpression = 314, NotEmittedStatement = 313,
MergeDeclarationMarker = 315, PartiallyEmittedExpression = 314,
EndOfDeclarationMarker = 316, CommaListExpression = 315,
Count = 317, MergeDeclarationMarker = 316,
FirstAssignment = 59, EndOfDeclarationMarker = 317,
LastAssignment = 71, Count = 318,
FirstCompoundAssignment = 60, FirstAssignment = 60,
LastCompoundAssignment = 71, LastAssignment = 72,
FirstReservedWord = 73, FirstCompoundAssignment = 61,
LastReservedWord = 108, LastCompoundAssignment = 72,
FirstKeyword = 73, FirstReservedWord = 74,
LastKeyword = 147, LastReservedWord = 109,
FirstFutureReservedWord = 109, FirstKeyword = 74,
LastFutureReservedWord = 117, LastKeyword = 148,
FirstTypeNode = 163, FirstFutureReservedWord = 110,
LastTypeNode = 183, LastFutureReservedWord = 118,
FirstTypeNode = 164,
LastTypeNode = 184,
FirstPunctuation = 18, FirstPunctuation = 18,
LastPunctuation = 71, LastPunctuation = 72,
FirstToken = 0, FirstToken = 0,
LastToken = 147, LastToken = 148,
FirstTriviaToken = 2, FirstTriviaToken = 2,
LastTriviaToken = 7, LastTriviaToken = 7,
FirstLiteralToken = 8, FirstLiteralToken = 8,
@ -417,12 +419,12 @@ declare namespace ts {
FirstTemplateToken = 14, FirstTemplateToken = 14,
LastTemplateToken = 17, LastTemplateToken = 17,
FirstBinaryOperator = 28, FirstBinaryOperator = 28,
LastBinaryOperator = 71, LastBinaryOperator = 72,
FirstNode = 148, FirstNode = 149,
FirstJSDocNode = 288, FirstJSDocNode = 289,
LastJSDocNode = 310, LastJSDocNode = 311,
FirstJSDocTagNode = 299, FirstJSDocTagNode = 300,
LastJSDocTagNode = 310, LastJSDocTagNode = 311,
} }
enum NodeFlags { enum NodeFlags {
None = 0, None = 0,
@ -626,7 +628,7 @@ declare namespace ts {
initializer?: Expression; initializer?: Expression;
} }
interface ObjectLiteralElement extends NamedDeclaration { interface ObjectLiteralElement extends NamedDeclaration {
_objectLiteralBrandBrand: any; _objectLiteralBrand: any;
name?: PropertyName; name?: PropertyName;
} }
/** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */ /** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */
@ -1601,7 +1603,7 @@ declare namespace ts {
} }
interface JSDocTypeTag extends JSDocTag { interface JSDocTypeTag extends JSDocTag {
kind: SyntaxKind.JSDocTypeTag; kind: SyntaxKind.JSDocTypeTag;
typeExpression?: JSDocTypeExpression; typeExpression: JSDocTypeExpression;
} }
interface JSDocTypedefTag extends JSDocTag, NamedDeclaration { interface JSDocTypedefTag extends JSDocTag, NamedDeclaration {
parent: JSDoc; parent: JSDoc;
@ -1877,13 +1879,18 @@ declare namespace ts {
sourceFile: SourceFile; sourceFile: SourceFile;
references?: ReadonlyArray<ResolvedProjectReference | undefined>; references?: ReadonlyArray<ResolvedProjectReference | undefined>;
} }
type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
interface CustomTransformer {
transformSourceFile(node: SourceFile): SourceFile;
transformBundle(node: Bundle): Bundle;
}
interface CustomTransformers { interface CustomTransformers {
/** Custom transformers to evaluate before built-in .js transformations. */ /** Custom transformers to evaluate before built-in .js transformations. */
before?: TransformerFactory<SourceFile>[]; before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
/** Custom transformers to evaluate after built-in .js transformations. */ /** Custom transformers to evaluate after built-in .js transformations. */
after?: TransformerFactory<SourceFile>[]; after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
/** Custom transformers to evaluate after built-in .d.ts transformations. */ /** Custom transformers to evaluate after built-in .d.ts transformations. */
afterDeclarations?: TransformerFactory<Bundle | SourceFile>[]; afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
} }
interface SourceMapSpan { interface SourceMapSpan {
/** Line number in the .js file. */ /** Line number in the .js file. */
@ -1962,6 +1969,7 @@ declare namespace ts {
*/ */
getExportSymbolOfSymbol(symbol: Symbol): Symbol; getExportSymbolOfSymbol(symbol: Symbol): Symbol;
getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined; getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined;
getTypeOfAssignmentPattern(pattern: AssignmentPattern): Type;
getTypeAtLocation(node: Node): Type; getTypeAtLocation(node: Node): Type;
getTypeFromTypeNode(node: TypeNode): Type; getTypeFromTypeNode(node: TypeNode): Type;
signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string; signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string;
@ -2359,7 +2367,8 @@ declare namespace ts {
objectType: Type; objectType: Type;
indexType: Type; indexType: Type;
constraint?: Type; constraint?: Type;
simplified?: Type; simplifiedForReading?: Type;
simplifiedForWriting?: Type;
} }
type TypeVariable = TypeParameter | IndexedAccessType; type TypeVariable = TypeParameter | IndexedAccessType;
interface IndexType extends InstantiableType { interface IndexType extends InstantiableType {
@ -2382,8 +2391,8 @@ declare namespace ts {
root: ConditionalRoot; root: ConditionalRoot;
checkType: Type; checkType: Type;
extendsType: Type; extendsType: Type;
trueType: Type; resolvedTrueType: Type;
falseType: Type; resolvedFalseType: Type;
} }
interface SubstitutionType extends InstantiableType { interface SubstitutionType extends InstantiableType {
typeVariable: TypeVariable; typeVariable: TypeVariable;
@ -2410,12 +2419,13 @@ declare namespace ts {
enum InferencePriority { enum InferencePriority {
NakedTypeVariable = 1, NakedTypeVariable = 1,
HomomorphicMappedType = 2, HomomorphicMappedType = 2,
MappedTypeConstraint = 4, PartialHomomorphicMappedType = 4,
ReturnType = 8, MappedTypeConstraint = 8,
LiteralKeyof = 16, ReturnType = 16,
NoConstraints = 32, LiteralKeyof = 32,
AlwaysStrict = 64, NoConstraints = 64,
PriorityImpliesCombination = 28 AlwaysStrict = 128,
PriorityImpliesCombination = 56
} }
/** @deprecated Use FileExtensionInfo instead. */ /** @deprecated Use FileExtensionInfo instead. */
type JsFileExtensionInfo = FileExtensionInfo; type JsFileExtensionInfo = FileExtensionInfo;
@ -2489,6 +2499,7 @@ declare namespace ts {
interface CompilerOptions { interface CompilerOptions {
allowJs?: boolean; allowJs?: boolean;
allowSyntheticDefaultImports?: boolean; allowSyntheticDefaultImports?: boolean;
allowUmdGlobalAccess?: boolean;
allowUnreachableCode?: boolean; allowUnreachableCode?: boolean;
allowUnusedLabels?: boolean; allowUnusedLabels?: boolean;
alwaysStrict?: boolean; alwaysStrict?: boolean;
@ -2621,9 +2632,10 @@ declare namespace ts {
ES2017 = 4, ES2017 = 4,
ES2018 = 5, ES2018 = 5,
ES2019 = 6, ES2019 = 6,
ESNext = 7, ES2020 = 7,
ESNext = 8,
JSON = 100, JSON = 100,
Latest = 7 Latest = 8
} }
enum LanguageVariant { enum LanguageVariant {
Standard = 0, Standard = 0,
@ -2756,6 +2768,7 @@ declare namespace ts {
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[];
getEnvironmentVariable?(name: string): string | undefined; getEnvironmentVariable?(name: string): string | undefined;
createHash?(data: string): string; createHash?(data: string): string;
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
} }
interface SourceMapRange extends TextRange { interface SourceMapRange extends TextRange {
source?: SourceMapSource; source?: SourceMapSource;
@ -3159,7 +3172,7 @@ declare namespace ts {
reScanJsxToken(): JsxTokenSyntaxKind; reScanJsxToken(): JsxTokenSyntaxKind;
reScanLessThanToken(): SyntaxKind; reScanLessThanToken(): SyntaxKind;
scanJsxToken(): JsxTokenSyntaxKind; scanJsxToken(): JsxTokenSyntaxKind;
scanJSDocToken(): JsDocSyntaxKind; scanJsDocToken(): JSDocSyntaxKind;
scan(): SyntaxKind; scan(): SyntaxKind;
getText(): string; getText(): string;
setText(text: string | undefined, start?: number, length?: number): void; setText(text: string | undefined, start?: number, length?: number): void;
@ -3627,7 +3640,7 @@ declare namespace ts {
/** /**
* Reads the config file, reports errors if any and exits if the config file cannot be found * Reads the config file, reports errors if any and exits if the config file cannot be found
*/ */
function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined; function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine | undefined;
/** /**
* Read tsconfig.json file * Read tsconfig.json file
* @param fileName The path to the config file * @param fileName The path to the config file
@ -3661,7 +3674,7 @@ declare namespace ts {
* @param basePath A root directory to resolve relative path entries in the config * @param basePath A root directory to resolve relative path entries in the config
* file to. e.g. outDir * file to. e.g. outDir
*/ */
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
/** /**
* Parse the contents of a config file (tsconfig.json). * Parse the contents of a config file (tsconfig.json).
* @param jsonNode The contents of the config file to parse * @param jsonNode The contents of the config file to parse
@ -3669,7 +3682,20 @@ declare namespace ts {
* @param basePath A root directory to resolve relative path entries in the config * @param basePath A root directory to resolve relative path entries in the config
* file to. e.g. outDir * file to. e.g. outDir
*/ */
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
interface ParsedTsconfig {
raw: any;
options?: CompilerOptions;
typeAcquisition?: TypeAcquisition;
/**
* Note that the case of the config path has not yet been normalized, as no files have been imported into the project yet
*/
extendedConfigPath?: string;
}
interface ExtendedConfigCacheEntry {
extendedResult: TsConfigSourceFile;
extendedConfig: ParsedTsconfig | undefined;
}
function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): {
options: CompilerOptions; options: CompilerOptions;
errors: Diagnostic[]; errors: Diagnostic[];
@ -3714,7 +3740,7 @@ declare namespace ts {
get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined; get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined;
set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void; set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void;
} }
function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): ModuleResolutionCache; function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined; function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
@ -3837,7 +3863,7 @@ declare namespace ts {
function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression; function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression;
function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression; function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression;
function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression; function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression;
function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression; function createPropertyAccess(expression: Expression, name: string | Identifier): PropertyAccessExpression;
function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression; function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression;
function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression; function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression;
function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression; function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression;
@ -4052,7 +4078,7 @@ declare namespace ts {
function createInputFiles(javascriptText: string, declarationText: string): InputFiles; function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles; function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles; function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle; function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression; function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression; function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression;
@ -4540,13 +4566,12 @@ declare namespace ts.server {
type ActionSet = "action::set"; type ActionSet = "action::set";
type ActionInvalidate = "action::invalidate"; type ActionInvalidate = "action::invalidate";
type ActionPackageInstalled = "action::packageInstalled"; type ActionPackageInstalled = "action::packageInstalled";
type ActionValueInspected = "action::valueInspected";
type EventTypesRegistry = "event::typesRegistry"; type EventTypesRegistry = "event::typesRegistry";
type EventBeginInstallTypes = "event::beginInstallTypes"; type EventBeginInstallTypes = "event::beginInstallTypes";
type EventEndInstallTypes = "event::endInstallTypes"; type EventEndInstallTypes = "event::endInstallTypes";
type EventInitializationFailed = "event::initializationFailed"; type EventInitializationFailed = "event::initializationFailed";
interface TypingInstallerResponse { interface TypingInstallerResponse {
readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | ActionValueInspected | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed; readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
} }
interface TypingInstallerRequestWithProjectName { interface TypingInstallerRequestWithProjectName {
readonly projectName: string; readonly projectName: string;
@ -4785,6 +4810,7 @@ declare namespace ts {
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined; getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo; getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): ReadonlyArray<RenameLocation> | undefined; findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): ReadonlyArray<RenameLocation> | undefined;
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined;
getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined; getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined;
getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined;
@ -4979,16 +5005,9 @@ declare namespace ts {
changes: ReadonlyArray<FileTextChanges>; changes: ReadonlyArray<FileTextChanges>;
commands?: ReadonlyArray<CodeActionCommand>; commands?: ReadonlyArray<CodeActionCommand>;
} }
type CodeActionCommand = InstallPackageAction | GenerateTypesAction; type CodeActionCommand = InstallPackageAction;
interface InstallPackageAction { interface InstallPackageAction {
} }
interface GenerateTypesAction extends GenerateTypesOptions {
}
interface GenerateTypesOptions {
readonly file: string;
readonly fileToGenerateTypesFor: string;
readonly outputFileName: string;
}
/** /**
* A set of one or more available refactoring actions, grouped under a parent refactoring. * A set of one or more available refactoring actions, grouped under a parent refactoring.
*/ */
@ -5236,6 +5255,10 @@ declare namespace ts {
displayParts: SymbolDisplayPart[]; displayParts: SymbolDisplayPart[];
isOptional: boolean; isOptional: boolean;
} }
interface SelectionRange {
textSpan: TextSpan;
parent?: SelectionRange;
}
/** /**
* Represents a single signature to show in signature help. * Represents a single signature to show in signature help.
* The id is used for subsequent calls into the language service to ask questions about the * The id is used for subsequent calls into the language service to ask questions about the
@ -5612,10 +5635,6 @@ declare namespace ts {
function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput; function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput;
function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string; function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string;
} }
declare namespace ts {
function generateTypesForModule(name: string, moduleValue: unknown, formatSettings: FormatCodeSettings): string;
function generateTypesForGlobal(name: string, globalValue: unknown, formatSettings: FormatCodeSettings): string;
}
declare namespace ts { declare namespace ts {
/** The version of the language service API */ /** The version of the language service API */
const servicesVersion = "0.8"; const servicesVersion = "0.8";

View File

@ -8,11 +8,11 @@
export const latestVersions = { export const latestVersions = {
// These versions should be kept up to date with latest Angular peer dependencies. // These versions should be kept up to date with latest Angular peer dependencies.
Angular: '~8.2.0-next.2', Angular: '~8.2.0-rc.0',
RxJs: '~6.4.0', RxJs: '~6.4.0',
ZoneJs: '~0.9.1', ZoneJs: '~0.9.1',
TypeScript: '~3.4.3', TypeScript: '~3.5.3',
TsLib: '^1.9.0', TsLib: '^1.10.0',
// The versions below must be manually updated when making a new devkit release. // The versions below must be manually updated when making a new devkit release.
DevkitBuildAngular: '~0.802.0-next.2', DevkitBuildAngular: '~0.802.0-next.2',
@ -20,6 +20,6 @@ export const latestVersions = {
DevkitBuildWebpack: '~0.802.0-next.2', DevkitBuildWebpack: '~0.802.0-next.2',
AngularPWA: '~0.802.0-next.2', AngularPWA: '~0.802.0-next.2',
tsickle: '^0.35.0', tsickle: '^0.36.0',
ngPackagr: '^5.1.0', ngPackagr: '^5.3.0',
}; };

View File

@ -18,6 +18,6 @@
"@types/jasmine": "^3.3.9", "@types/jasmine": "^3.3.9",
"@types/node": "^8.0.31", "@types/node": "^8.0.31",
"jasmine": "^3.3.1", "jasmine": "^3.3.1",
"typescript": "~3.4.3" "typescript": "~3.5.3"
} }
} }

View File

@ -18,6 +18,6 @@
"@types/jasmine": "^3.3.9", "@types/jasmine": "^3.3.9",
"@types/node": "^8.0.31", "@types/node": "^8.0.31",
"jasmine": "^3.3.1", "jasmine": "^3.3.1",
"typescript": "3.4.5" "typescript": "3.5.3"
} }
} }

View File

@ -21,7 +21,7 @@
"preprocess-loader": "^0.2.2", "preprocess-loader": "^0.2.2",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"sass-loader": "^6.0.0", "sass-loader": "^6.0.0",
"typescript": "~3.4.5", "typescript": "~3.5.3",
"webpack": "~4.0.1", "webpack": "~4.0.1",
"webpack-cli": "~2.0.9" "webpack-cli": "~2.0.9"
} }

View File

@ -2,14 +2,14 @@
"name": "test", "name": "test",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@angular/common": "^8.0.0-rc.0", "@angular/common": "^8.2.0-rc.0",
"@angular/compiler": "^8.0.0-rc.0", "@angular/compiler": "^8.2.0-rc.0",
"@angular/compiler-cli": "^8.0.0-rc.0", "@angular/compiler-cli": "^8.2.0-rc.0",
"@angular/core": "^8.0.0-rc.0", "@angular/core": "^8.2.0-rc.0",
"@angular/platform-browser": "^8.0.0-rc.0", "@angular/platform-browser": "^8.2.0-rc.0",
"@angular/platform-browser-dynamic": "^8.0.0-rc.0", "@angular/platform-browser-dynamic": "^8.2.0-rc.0",
"@angular/platform-server": "^8.0.0-rc.0", "@angular/platform-server": "^8.2.0-rc.0",
"@angular/router": "^8.0.0-rc.0", "@angular/router": "^8.2.0-rc.0",
"@ngtools/webpack": "0.0.0", "@ngtools/webpack": "0.0.0",
"core-js": "^3.0.0", "core-js": "^3.0.0",
"rxjs": "^6.4.0", "rxjs": "^6.4.0",
@ -20,7 +20,7 @@
"performance-now": "^0.2.0", "performance-now": "^0.2.0",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"sass-loader": "^6.0.0", "sass-loader": "^6.0.0",
"typescript": "~3.4.5", "typescript": "~3.5.3",
"webpack": "~4.0.1", "webpack": "~4.0.1",
"webpack-cli": "~2.0.9" "webpack-cli": "~2.0.9"
} }

View File

@ -21,7 +21,7 @@
"performance-now": "^0.2.0", "performance-now": "^0.2.0",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"sass-loader": "^6.0.3", "sass-loader": "^6.0.3",
"typescript": "~3.4.5", "typescript": "~3.5.3",
"webpack": "~4.0.1", "webpack": "~4.0.1",
"webpack-cli": "~2.0.9" "webpack-cli": "~2.0.9"
} }

584
yarn.lock

File diff suppressed because it is too large Load Diff