File tree 4 files changed +6
-14
lines changed
tests/baselines/reference/api 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ namespace ts {
443
443
},
444
444
getAugmentedPropertiesOfType,
445
445
getRootSymbols,
446
- getContextualType: (nodeIn, contextFlags) => {
446
+ getContextualType: (nodeIn: Expression , contextFlags?: ContextFlags ) => {
447
447
const node = getParseTreeNode(nodeIn, isExpression);
448
448
return node ? getContextualType(node, contextFlags) : undefined;
449
449
},
Original file line number Diff line number Diff line change @@ -3220,7 +3220,8 @@ namespace ts {
3220
3220
getFullyQualifiedName ( symbol : Symbol ) : string ;
3221
3221
getAugmentedPropertiesOfType ( type : Type ) : Symbol [ ] ;
3222
3222
getRootSymbols ( symbol : Symbol ) : ReadonlyArray < Symbol > ;
3223
- getContextualType ( node : Expression , contextFlags ?: ContextFlags ) : Type | undefined ;
3223
+ getContextualType ( node : Expression ) : Type | undefined ;
3224
+ /* @internal */ getContextualType ( node : Expression , contextFlags ?: ContextFlags ) : Type | undefined ; // tslint:disable-line unified-signatures
3224
3225
/* @internal */ getContextualTypeForObjectLiteralElement ( element : ObjectLiteralElementLike ) : Type | undefined ;
3225
3226
/* @internal */ getContextualTypeForArgumentAtIndex ( call : CallLikeExpression , argIndex : number ) : Type | undefined ;
3226
3227
/* @internal */ getContextualTypeForJsxAttribute ( attribute : JsxAttribute | JsxSpreadAttribute ) : Type | undefined ;
@@ -3378,6 +3379,7 @@ namespace ts {
3378
3379
Subtype
3379
3380
}
3380
3381
3382
+ /* @internal */
3381
3383
export const enum ContextFlags {
3382
3384
None = 0 ,
3383
3385
Signature = 1 << 0 , // Obtaining contextual signature
Original file line number Diff line number Diff line change @@ -1995,7 +1995,7 @@ declare namespace ts {
1995
1995
getFullyQualifiedName ( symbol : Symbol ) : string ;
1996
1996
getAugmentedPropertiesOfType ( type : Type ) : Symbol [ ] ;
1997
1997
getRootSymbols ( symbol : Symbol ) : ReadonlyArray < Symbol > ;
1998
- getContextualType ( node : Expression , contextFlags ?: ContextFlags ) : Type | undefined ;
1998
+ getContextualType ( node : Expression ) : Type | undefined ;
1999
1999
/**
2000
2000
* returns unknownSignature in the case of an error.
2001
2001
* returns undefined if the node is not valid.
@@ -2026,11 +2026,6 @@ declare namespace ts {
2026
2026
*/
2027
2027
runWithCancellationToken < T > ( token : CancellationToken , cb : ( checker : TypeChecker ) => T ) : T ;
2028
2028
}
2029
- export enum ContextFlags {
2030
- None = 0 ,
2031
- Signature = 1 ,
2032
- Completion = 2
2033
- }
2034
2029
export enum NodeBuilderFlags {
2035
2030
None = 0 ,
2036
2031
NoTruncation = 1 ,
Original file line number Diff line number Diff line change @@ -1995,7 +1995,7 @@ declare namespace ts {
1995
1995
getFullyQualifiedName ( symbol : Symbol ) : string ;
1996
1996
getAugmentedPropertiesOfType ( type : Type ) : Symbol [ ] ;
1997
1997
getRootSymbols ( symbol : Symbol ) : ReadonlyArray < Symbol > ;
1998
- getContextualType ( node : Expression , contextFlags ?: ContextFlags ) : Type | undefined ;
1998
+ getContextualType ( node : Expression ) : Type | undefined ;
1999
1999
/**
2000
2000
* returns unknownSignature in the case of an error.
2001
2001
* returns undefined if the node is not valid.
@@ -2026,11 +2026,6 @@ declare namespace ts {
2026
2026
*/
2027
2027
runWithCancellationToken < T > ( token : CancellationToken , cb : ( checker : TypeChecker ) => T ) : T ;
2028
2028
}
2029
- export enum ContextFlags {
2030
- None = 0 ,
2031
- Signature = 1 ,
2032
- Completion = 2
2033
- }
2034
2029
export enum NodeBuilderFlags {
2035
2030
None = 0 ,
2036
2031
NoTruncation = 1 ,
You can’t perform that action at this time.
0 commit comments