Skip to content

Commit

Permalink
Expose Signature.thisParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 2, 2023
1 parent 3f675b6 commit 0d1c4ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/compiler/types.ts
Expand Up @@ -6716,7 +6716,6 @@ export interface Signature {
declaration?: SignatureDeclaration | JSDocSignature; // Originating declaration
typeParameters?: readonly TypeParameter[]; // Type parameters (undefined if non-generic)
parameters: readonly Symbol[]; // Parameters
/** @internal */
thisParameter?: Symbol; // symbol of this-type parameter
/** @internal */
// See comment in `instantiateSignature` for why these are set lazily.
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/api/tsserverlibrary.d.ts
Expand Up @@ -6901,6 +6901,7 @@ declare namespace ts {
declaration?: SignatureDeclaration | JSDocSignature;
typeParameters?: readonly TypeParameter[];
parameters: readonly Symbol[];
thisParameter?: Symbol;
}
interface Signature {
getDeclaration(): SignatureDeclaration;
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/api/typescript.d.ts
Expand Up @@ -2958,6 +2958,7 @@ declare namespace ts {
declaration?: SignatureDeclaration | JSDocSignature;
typeParameters?: readonly TypeParameter[];
parameters: readonly Symbol[];
thisParameter?: Symbol;
}
interface Signature {
getDeclaration(): SignatureDeclaration;
Expand Down

0 comments on commit 0d1c4ce

Please sign in to comment.