Skip to content

Commit 9cc3070

Browse files
authored
expose getImmediateAliasedSymbol() publicly (#44644)
Signed-off-by: Kubilay Kahveci <[email protected]>
1 parent 642060d commit 9cc3070

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4219,7 +4219,7 @@ namespace ts {
42194219
/** Follow all aliases to get the original symbol. */
42204220
getAliasedSymbol(symbol: Symbol): Symbol;
42214221
/** Follow a *single* alias to get the immediately aliased symbol. */
4222-
/* @internal */ getImmediateAliasedSymbol(symbol: Symbol): Symbol | undefined;
4222+
getImmediateAliasedSymbol(symbol: Symbol): Symbol | undefined;
42234223
getExportsOfModule(moduleSymbol: Symbol): Symbol[];
42244224
/** Unlike `getExportsOfModule`, this includes properties of an `export =` value. */
42254225
/* @internal */ getExportsAndPropertiesOfModule(moduleSymbol: Symbol): Symbol[];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,8 @@ declare namespace ts {
22722272
isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean;
22732273
/** Follow all aliases to get the original symbol. */
22742274
getAliasedSymbol(symbol: Symbol): Symbol;
2275+
/** Follow a *single* alias to get the immediately aliased symbol. */
2276+
getImmediateAliasedSymbol(symbol: Symbol): Symbol | undefined;
22752277
getExportsOfModule(moduleSymbol: Symbol): Symbol[];
22762278
getJsxIntrinsicTagNamesAt(location: Node): Symbol[];
22772279
isOptionalParameter(node: ParameterDeclaration): boolean;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,8 @@ declare namespace ts {
22722272
isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean;
22732273
/** Follow all aliases to get the original symbol. */
22742274
getAliasedSymbol(symbol: Symbol): Symbol;
2275+
/** Follow a *single* alias to get the immediately aliased symbol. */
2276+
getImmediateAliasedSymbol(symbol: Symbol): Symbol | undefined;
22752277
getExportsOfModule(moduleSymbol: Symbol): Symbol[];
22762278
getJsxIntrinsicTagNamesAt(location: Node): Symbol[];
22772279
isOptionalParameter(node: ParameterDeclaration): boolean;

0 commit comments

Comments
 (0)