@@ -744,9 +744,10 @@ declare namespace ts {
744
744
children : NodeArray < JsxChild > ;
745
745
closingElement : JsxClosingElement ;
746
746
}
747
+ type JsxTagNameExpression = PrimaryExpression | PropertyAccessExpression ;
747
748
interface JsxOpeningElement extends Expression {
748
749
_openingElementBrand ?: any ;
749
- tagName : EntityName ;
750
+ tagName : JsxTagNameExpression ;
750
751
attributes : NodeArray < JsxAttribute | JsxSpreadAttribute > ;
751
752
}
752
753
interface JsxSelfClosingElement extends PrimaryExpression , JsxOpeningElement {
@@ -761,7 +762,7 @@ declare namespace ts {
761
762
expression : Expression ;
762
763
}
763
764
interface JsxClosingElement extends Node {
764
- tagName : EntityName ;
765
+ tagName : JsxTagNameExpression ;
765
766
}
766
767
interface JsxExpression extends Expression {
767
768
expression ?: Expression ;
@@ -1263,7 +1264,7 @@ declare namespace ts {
1263
1264
buildTypeParameterDisplay ( tp : TypeParameter , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1264
1265
buildTypePredicateDisplay ( predicate : TypePredicate , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1265
1266
buildTypeParameterDisplayFromSymbol ( symbol : Symbol , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1266
- buildDisplayForParametersAndDelimiters ( thisType : Type , parameters : Symbol [ ] , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1267
+ buildDisplayForParametersAndDelimiters ( thisParameter : Symbol , parameters : Symbol [ ] , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1267
1268
buildDisplayForTypeParametersAndDelimiters ( typeParameters : TypeParameter [ ] , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1268
1269
buildReturnTypeDisplay ( signature : Signature , writer : SymbolWriter , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags ) : void ;
1269
1270
}
@@ -1446,11 +1447,13 @@ declare namespace ts {
1446
1447
members ?: SymbolTable ;
1447
1448
exports ?: SymbolTable ;
1448
1449
globalExports ?: SymbolTable ;
1450
+ isReadonly ?: boolean ;
1449
1451
id ?: number ;
1450
1452
mergeId ?: number ;
1451
1453
parent ?: Symbol ;
1452
1454
exportSymbol ?: Symbol ;
1453
1455
constEnumOnlyModule ?: boolean ;
1456
+ hasReference ?: boolean ;
1454
1457
}
1455
1458
interface SymbolLinks {
1456
1459
target ?: Symbol ;
@@ -1639,7 +1642,7 @@ declare namespace ts {
1639
1642
declaration : SignatureDeclaration ;
1640
1643
typeParameters : TypeParameter [ ] ;
1641
1644
parameters : Symbol [ ] ;
1642
- thisType ?: Type ;
1645
+ thisParameter ?: Symbol ;
1643
1646
resolvedReturnType : Type ;
1644
1647
minArgumentCount : number ;
1645
1648
hasRestParameter : boolean ;
@@ -1757,6 +1760,8 @@ declare namespace ts {
1757
1760
noImplicitAny ?: boolean ;
1758
1761
noImplicitReturns ?: boolean ;
1759
1762
noImplicitThis ?: boolean ;
1763
+ noUnusedLocals ?: boolean ;
1764
+ noUnusedParameters ?: boolean ;
1760
1765
noImplicitUseStrict ?: boolean ;
1761
1766
noLib ?: boolean ;
1762
1767
noResolve ?: boolean ;
@@ -1785,7 +1790,6 @@ declare namespace ts {
1785
1790
disableSizeLimit ?: boolean ;
1786
1791
types ?: string [ ] ;
1787
1792
typeRoots ?: string [ ] ;
1788
- typesSearchPaths ?: string [ ] ;
1789
1793
version ?: boolean ;
1790
1794
watch ?: boolean ;
1791
1795
[ option : string ] : CompilerOptionsValue | undefined ;
@@ -6438,6 +6442,24 @@ declare namespace ts {
6438
6442
key : string ;
6439
6443
message : string ;
6440
6444
} ;
6445
+ _0_is_declared_but_never_used : {
6446
+ code : number ;
6447
+ category : DiagnosticCategory ;
6448
+ key : string ;
6449
+ message : string ;
6450
+ } ;
6451
+ Report_Errors_on_Unused_Locals : {
6452
+ code : number ;
6453
+ category : DiagnosticCategory ;
6454
+ key : string ;
6455
+ message : string ;
6456
+ } ;
6457
+ Report_Errors_on_Unused_Parameters : {
6458
+ code : number ;
6459
+ category : DiagnosticCategory ;
6460
+ key : string ;
6461
+ message : string ;
6462
+ } ;
6441
6463
Variable_0_implicitly_has_an_1_type : {
6442
6464
code : number ;
6443
6465
category : DiagnosticCategory ;
@@ -6981,7 +7003,7 @@ declare namespace ts {
6981
7003
function isLiteralComputedPropertyDeclarationName ( node : Node ) : boolean ;
6982
7004
function isIdentifierName ( node : Identifier ) : boolean ;
6983
7005
function isAliasSymbolDeclaration ( node : Node ) : boolean ;
6984
- function getClassExtendsHeritageClauseElement ( node : ClassLikeDeclaration ) : ExpressionWithTypeArguments ;
7006
+ function getClassExtendsHeritageClauseElement ( node : ClassLikeDeclaration | InterfaceDeclaration ) : ExpressionWithTypeArguments ;
6985
7007
function getClassImplementsHeritageClauseElements ( node : ClassLikeDeclaration ) : NodeArray < ExpressionWithTypeArguments > ;
6986
7008
function getInterfaceBaseTypeNodes ( node : InterfaceDeclaration ) : NodeArray < ExpressionWithTypeArguments > ;
6987
7009
function getHeritageClause ( clauses : NodeArray < HeritageClause > , kind : SyntaxKind ) : HeritageClause ;
@@ -7688,6 +7710,7 @@ declare namespace ts.formatting {
7688
7710
declare namespace ts . formatting {
7689
7711
namespace SmartIndenter {
7690
7712
function getIndentation ( position : number , sourceFile : SourceFile , options : EditorOptions ) : number ;
7713
+ function getBaseIndentation ( options : EditorOptions ) : number ;
7691
7714
function getIndentationForNode ( n : Node , ignoreActualIndentationRange : TextRange , sourceFile : SourceFile , options : FormatCodeOptions ) : number ;
7692
7715
function childStartsOnTheSameLineWithElseInIfStatement ( parent : Node , child : TextRangeWithKind , childStartLine : number , sourceFile : SourceFile ) : boolean ;
7693
7716
function findFirstNonWhitespaceCharacterAndColumn ( startPos : number , endPos : number , sourceFile : SourceFile , options : EditorOptions ) : {
@@ -7826,7 +7849,7 @@ declare namespace ts {
7826
7849
getFormattingEditsForDocument ( fileName : string , options : FormatCodeOptions ) : TextChange [ ] ;
7827
7850
getFormattingEditsAfterKeystroke ( fileName : string , position : number , key : string , options : FormatCodeOptions ) : TextChange [ ] ;
7828
7851
getDocCommentTemplateAtPosition ( fileName : string , position : number ) : TextInsertion ;
7829
- isValidBraceCompletionAtPostion ( fileName : string , position : number , openingBrace : number ) : boolean ;
7852
+ isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
7830
7853
getEmitOutput ( fileName : string ) : EmitOutput ;
7831
7854
getProgram ( ) : Program ;
7832
7855
getNonBoundSourceFile ( fileName : string ) : SourceFile ;
@@ -7904,6 +7927,7 @@ declare namespace ts {
7904
7927
containerKind : string ;
7905
7928
}
7906
7929
interface EditorOptions {
7930
+ BaseIndentSize ?: number ;
7907
7931
IndentSize : number ;
7908
7932
TabSize : number ;
7909
7933
NewLineCharacter : string ;
@@ -7926,7 +7950,7 @@ declare namespace ts {
7926
7950
InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces : boolean ;
7927
7951
PlaceOpenBraceOnNewLineForFunctions : boolean ;
7928
7952
PlaceOpenBraceOnNewLineForControlBlocks : boolean ;
7929
- [ s : string ] : boolean | number | string ;
7953
+ [ s : string ] : boolean | number | string | undefined ;
7930
7954
}
7931
7955
interface DefinitionInfo {
7932
7956
fileName : string ;
@@ -8231,6 +8255,8 @@ declare namespace ts.server {
8231
8255
const Formatonkey : string ;
8232
8256
const Geterr : string ;
8233
8257
const GeterrForProject : string ;
8258
+ const SemanticDiagnosticsSync : string ;
8259
+ const SyntacticDiagnosticsSync : string ;
8234
8260
const NavBar : string ;
8235
8261
const Navto : string ;
8236
8262
const Occurrences : string ;
@@ -8277,6 +8303,9 @@ declare namespace ts.server {
8277
8303
private getDefinition ( line , offset , fileName ) ;
8278
8304
private getTypeDefinition ( line , offset , fileName ) ;
8279
8305
private getOccurrences ( line , offset , fileName ) ;
8306
+ private getDiagnosticsWorker ( args , selector ) ;
8307
+ private getSyntacticDiagnosticsSync ( args ) ;
8308
+ private getSemanticDiagnosticsSync ( args ) ;
8280
8309
private getDocumentHighlights ( line , offset , fileName , filesToSearch ) ;
8281
8310
private getProjectInfo ( fileName , needFileNameList ) ;
8282
8311
private getRenameLocations ( line , offset , fileName , findInComments , findInStrings ) ;
@@ -8300,6 +8329,7 @@ declare namespace ts.server {
8300
8329
getDiagnosticsForProject ( delay : number , fileName : string ) : void ;
8301
8330
getCanonicalFileName ( fileName : string ) : string ;
8302
8331
exit ( ) : void ;
8332
+ private requiredResponse ( response ) ;
8303
8333
private handlers ;
8304
8334
addProtocolHandler ( command : string , handler : ( request : protocol . Request ) => {
8305
8335
response ?: any ;
@@ -8731,7 +8761,7 @@ declare namespace ts {
8731
8761
getFormattingEditsForDocument ( fileName : string , options : string ) : string ;
8732
8762
getFormattingEditsAfterKeystroke ( fileName : string , position : number , key : string , options : string ) : string ;
8733
8763
getDocCommentTemplateAtPosition ( fileName : string , position : number ) : string ;
8734
- isValidBraceCompletionAtPostion ( fileName : string , position : number , openingBrace : number ) : string ;
8764
+ isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : string ;
8735
8765
getEmitOutput ( fileName : string ) : string ;
8736
8766
}
8737
8767
interface ClassifierShim extends Shim {
0 commit comments