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",
"temp": "^0.9.0",
"tslint": "^5.15.0",
"typescript": "3.4.5"
"typescript": "3.5.3"
},
"devDependencies": {
"@angular/compiler": "~8.1.0",
"@angular/compiler-cli": "~8.1.0",
"@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.2.0-rc.0",
"@bazel/bazel": "0.24.1",
"@bazel/buildifier": "^0.22.0",
"@bazel/jasmine": "~0.26.0",

View File

@ -191,7 +191,7 @@ export async function fetchPackageMetadata(
if (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"
},
"devDependencies": {
"@angular/animations": "~8.1.0",
"@angular/animations": "~8.2.0-rc.0",
"@angular/cdk": "^8.0.0",
"@angular/common": "~8.1.0",
"@angular/compiler": "~8.1.0",
"@angular/compiler-cli": "~8.1.0",
"@angular/core": "~8.1.0",
"@angular/common": "~8.2.0-rc.0",
"@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.2.0-rc.0",
"@angular/core": "~8.2.0-rc.0",
"@angular/forms": "~8.2.0-rc.0",
"@angular/material": "^8.0.0",
"@angular/platform-browser": "~8.1.0",
"@angular/platform-browser-dynamic": "~8.1.0",
"@angular/platform-server": "~8.1.0",
"@angular/router": "~8.1.0",
"@angular/service-worker": "~8.1.0",
"@angular/platform-browser": "~8.2.0-rc.0",
"@angular/platform-browser-dynamic": "~8.2.0-rc.0",
"@angular/platform-server": "~8.2.0-rc.0",
"@angular/router": "~8.2.0-rc.0",
"@angular/service-worker": "~8.2.0-rc.0",
"codelyzer": "^5.0.0",
"bootstrap": "^4.0.0",
"font-awesome": "^4.7.0",
@ -86,6 +87,6 @@
},
"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",
"typescript": ">=3.1 < 3.5"
"typescript": ">=3.1 < 3.6"
}
}

View File

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

View File

@ -11,7 +11,7 @@
"dependencies": {
"loader-utils": "1.2.3",
"source-map": "0.5.6",
"typescript": "3.4.5",
"typescript": "3.5.3",
"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
return ((observableOf(options) as any)
.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>;
}

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
return ((observableOf(options) as any)
.pipe(
...this._transforms.map(tFn => mergeMap(opt => {
...this._transforms.map(tFn => mergeMap((opt: {}) => {
const newOptions = tFn(schematic, opt, context);
if (isObservable(newOptions)) {
return newOptions;

View File

@ -29,13 +29,13 @@
},
"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",
"typescript": ">=3.4 < 3.5",
"typescript": ">=3.4 < 3.6",
"webpack": "^4.0.0"
},
"devDependencies": {
"@angular/compiler": "~8.1.0",
"@angular/compiler-cli": "~8.1.0",
"typescript": "3.4.5",
"@angular/compiler": "~8.2.0-rc.0",
"@angular/compiler-cli": "~8.2.0-rc.0",
"typescript": "3.5.3",
"webpack": "4.38.0"
}
}

View File

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

View File

@ -8,11 +8,11 @@
export const latestVersions = {
// 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',
ZoneJs: '~0.9.1',
TypeScript: '~3.4.3',
TsLib: '^1.9.0',
TypeScript: '~3.5.3',
TsLib: '^1.10.0',
// The versions below must be manually updated when making a new devkit release.
DevkitBuildAngular: '~0.802.0-next.2',
@ -20,6 +20,6 @@ export const latestVersions = {
DevkitBuildWebpack: '~0.802.0-next.2',
AngularPWA: '~0.802.0-next.2',
tsickle: '^0.35.0',
ngPackagr: '^5.1.0',
tsickle: '^0.36.0',
ngPackagr: '^5.3.0',
};

View File

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

View File

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

View File

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

View File

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

View File

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

584
yarn.lock

File diff suppressed because it is too large Load Diff