@@ -2527,11 +2527,11 @@ namespace ts {
25272527 indexInfoToIndexSignatureDeclaration ( indexInfo : IndexInfo , kind : IndexKind , enclosingDeclaration ?: Node , flags ?: NodeBuilderFlags ) : IndexSignatureDeclaration ;
25282528
25292529 getSymbolsInScope ( location : Node , meaning : SymbolFlags ) : Symbol [ ] ;
2530- getSymbolAtLocation ( node : Node ) : Symbol ;
2530+ getSymbolAtLocation ( node : Node ) : Symbol | undefined ;
25312531 getSymbolsOfParameterPropertyDeclaration ( parameter : ParameterDeclaration , parameterName : string ) : Symbol [ ] ;
2532- getShorthandAssignmentValueSymbol ( location : Node ) : Symbol ;
2533- getExportSpecifierLocalTargetSymbol ( location : ExportSpecifier ) : Symbol ;
2534- getPropertySymbolOfDestructuringAssignment ( location : Identifier ) : Symbol ;
2532+ getShorthandAssignmentValueSymbol ( location : Node ) : Symbol | undefined ;
2533+ getExportSpecifierLocalTargetSymbol ( location : ExportSpecifier ) : Symbol | undefined ;
2534+ getPropertySymbolOfDestructuringAssignment ( location : Identifier ) : Symbol | undefined ;
25352535 getTypeAtLocation ( node : Node ) : Type ;
25362536 getTypeFromTypeNode ( node : TypeNode ) : Type ;
25372537 signatureToString ( signature : Signature , enclosingDeclaration ?: Node , flags ?: TypeFormatFlags , kind ?: SignatureKind ) : string ;
@@ -2542,15 +2542,15 @@ namespace ts {
25422542 getAugmentedPropertiesOfType ( type : Type ) : Symbol [ ] ;
25432543 getRootSymbols ( symbol : Symbol ) : Symbol [ ] ;
25442544 getContextualType ( node : Expression ) : Type | undefined ;
2545- getResolvedSignature ( node : CallLikeExpression , candidatesOutArray ?: Signature [ ] ) : Signature ;
2546- getSignatureFromDeclaration ( declaration : SignatureDeclaration ) : Signature ;
2547- isImplementationOfOverload ( node : FunctionLikeDeclaration ) : boolean ;
2545+ getResolvedSignature ( node : CallLikeExpression , candidatesOutArray ?: Signature [ ] ) : Signature | undefined ;
2546+ getSignatureFromDeclaration ( declaration : SignatureDeclaration ) : Signature | undefined ;
2547+ isImplementationOfOverload ( node : FunctionLikeDeclaration ) : boolean | undefined ;
25482548 isUndefinedSymbol ( symbol : Symbol ) : boolean ;
25492549 isArgumentsSymbol ( symbol : Symbol ) : boolean ;
25502550 isUnknownSymbol ( symbol : Symbol ) : boolean ;
25512551 /* @internal */ getMergedSymbol ( symbol : Symbol ) : Symbol ;
25522552
2553- getConstantValue ( node : EnumMember | PropertyAccessExpression | ElementAccessExpression ) : number ;
2553+ getConstantValue ( node : EnumMember | PropertyAccessExpression | ElementAccessExpression ) : number | undefined ;
25542554 isValidPropertyAccess ( node : PropertyAccessExpression | QualifiedName , propertyName : string ) : boolean ;
25552555 /** Follow all aliases to get the original symbol. */
25562556 getAliasedSymbol ( symbol : Symbol ) : Symbol ;
@@ -2560,18 +2560,18 @@ namespace ts {
25602560 /** Unlike `getExportsOfModule`, this includes properties of an `export =` value. */
25612561 /* @internal */ getExportsAndPropertiesOfModule ( moduleSymbol : Symbol ) : Symbol [ ] ;
25622562
2563- getAllAttributesTypeFromJsxOpeningLikeElement ( elementNode : JsxOpeningLikeElement ) : Type ;
2563+ getAllAttributesTypeFromJsxOpeningLikeElement ( elementNode : JsxOpeningLikeElement ) : Type | undefined ;
25642564 getJsxIntrinsicTagNames ( ) : Symbol [ ] ;
25652565 isOptionalParameter ( node : ParameterDeclaration ) : boolean ;
25662566 getAmbientModules ( ) : Symbol [ ] ;
25672567
25682568 tryGetMemberInModuleExports ( memberName : string , moduleSymbol : Symbol ) : Symbol | undefined ;
25692569 getApparentType ( type : Type ) : Type ;
25702570 getSuggestionForNonexistentProperty ( node : Identifier , containingType : Type ) : string | undefined ;
2571- getSuggestionForNonexistentSymbol ( location : Node , name : string , meaning : SymbolFlags ) : string ;
2572- /* @internal */ getBaseConstraintOfType ( type : Type ) : Type ;
2571+ getSuggestionForNonexistentSymbol ( location : Node , name : string , meaning : SymbolFlags ) : string | undefined ;
2572+ /* @internal */ getBaseConstraintOfType ( type : Type ) : Type | undefined ;
25732573
2574- /* @internal */ tryFindAmbientModuleWithoutAugmentations ( moduleName : string ) : Symbol ;
2574+ /* @internal */ tryFindAmbientModuleWithoutAugmentations ( moduleName : string ) : Symbol | undefined ;
25752575
25762576 // Should not be called directly. Should only be accessed through the Program instance.
25772577 /* @internal */ getDiagnostics ( sourceFile ?: SourceFile , cancellationToken ?: CancellationToken ) : Diagnostic [ ] ;
@@ -2753,7 +2753,7 @@ namespace ts {
27532753 getNodeCheckFlags ( node : Node ) : NodeCheckFlags ;
27542754 isDeclarationVisible ( node : Declaration ) : boolean ;
27552755 collectLinkedAliases ( node : Identifier ) : Node [ ] ;
2756- isImplementationOfOverload ( node : FunctionLikeDeclaration ) : boolean ;
2756+ isImplementationOfOverload ( node : FunctionLikeDeclaration ) : boolean | undefined ;
27572757 isRequiredInitializedParameter ( node : ParameterDeclaration ) : boolean ;
27582758 writeTypeOfDeclaration ( declaration : AccessorDeclaration | VariableLikeDeclaration , enclosingDeclaration : Node , flags : TypeFormatFlags , writer : SymbolWriter ) : void ;
27592759 writeReturnTypeOfSignatureDeclaration ( signatureDeclaration : SignatureDeclaration , enclosingDeclaration : Node , flags : TypeFormatFlags , writer : SymbolWriter ) : void ;
@@ -3135,7 +3135,7 @@ namespace ts {
31353135 */
31363136 export interface TypeReference extends ObjectType {
31373137 target : GenericType ; // Type reference target
3138- typeArguments : Type [ ] ; // Type reference type arguments (undefined if none)
3138+ typeArguments ? : Type [ ] ; // Type reference type arguments (undefined if none)
31393139 }
31403140
31413141 // Generic class and interface types
@@ -3265,7 +3265,7 @@ namespace ts {
32653265
32663266 export interface Signature {
32673267 declaration : SignatureDeclaration ; // Originating declaration
3268- typeParameters : TypeParameter [ ] ; // Type parameters (undefined if non-generic)
3268+ typeParameters ? : TypeParameter [ ] ; // Type parameters (undefined if non-generic)
32693269 parameters : Symbol [ ] ; // Parameters
32703270 /* @internal */
32713271 thisParameter ?: Symbol ; // symbol of this-type parameter
0 commit comments