Skip to content

Commit 41f3011

Browse files
Gerrit0BobobUnicorn
authored andcommitted
Expose getTypePredicateOfSignature (microsoft#44863)
1 parent b555957 commit 41f3011

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4329,7 +4329,7 @@ namespace ts {
43294329
* This should be called in a loop climbing parents of the symbol, so we'll get `N`.
43304330
*/
43314331
/* @internal */ getAccessibleSymbolChain(symbol: Symbol, enclosingDeclaration: Node | undefined, meaning: SymbolFlags, useOnlyExternalAliasing: boolean): Symbol[] | undefined;
4332-
/* @internal */ getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
4332+
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
43334333
/* @internal */ resolveExternalModuleName(moduleSpecifier: Expression): Symbol | undefined;
43344334
/**
43354335
* An external module with an 'export =' declaration resolves to the target of the 'export =' declaration,

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ declare namespace ts {
22822282
getApparentType(type: Type): Type;
22832283
getBaseConstraintOfType(type: Type): Type | undefined;
22842284
getDefaultFromTypeParameter(type: Type): Type | undefined;
2285+
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
22852286
/**
22862287
* Depending on the operation performed, it may be appropriate to throw away the checker
22872288
* if the cancellation token is triggered. Typically, if it is used for error checking

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ declare namespace ts {
22822282
getApparentType(type: Type): Type;
22832283
getBaseConstraintOfType(type: Type): Type | undefined;
22842284
getDefaultFromTypeParameter(type: Type): Type | undefined;
2285+
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
22852286
/**
22862287
* Depending on the operation performed, it may be appropriate to throw away the checker
22872288
* if the cancellation token is triggered. Typically, if it is used for error checking

0 commit comments

Comments
 (0)