Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e263fce

Browse filesBrowse files
authored
Expose getTypePredicateOfSignature (microsoft#44863)
1 parent 55ed742 commit e263fce
Copy full SHA for e263fce

3 files changed

+3-1Lines changed: 3 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/types.ts‎

Copy file name to clipboardExpand all lines: src/compiler/types.ts
+1-1Lines 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,
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
+1Lines 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
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.