Skip to content

Commit

Permalink
fixes issue remote links return type (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmaia authored Jan 3, 2024
1 parent 69ae80f commit fa10e6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/version2/issueRemoteLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class IssueRemoteLinks {
* - If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission
* to view the issue.
*/
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks | string,
callback: Callback<T>,
): Promise<void>;
Expand All @@ -45,11 +45,11 @@ export class IssueRemoteLinks {
* - If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission
* to view the issue.
*/
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks | string,
callback?: never,
): Promise<T>;
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks | string,
callback?: Callback<T>,
): Promise<void | T> {
Expand Down
6 changes: 3 additions & 3 deletions src/version3/issueRemoteLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class IssueRemoteLinks {
* - If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission
* to view the issue.
*/
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks,
callback: Callback<T>,
): Promise<void>;
Expand All @@ -45,11 +45,11 @@ export class IssueRemoteLinks {
* - If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission
* to view the issue.
*/
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks,
callback?: never,
): Promise<T>;
async getRemoteIssueLinks<T = Models.RemoteIssueLink>(
async getRemoteIssueLinks<T = Models.RemoteIssueLink[]>(
parameters: Parameters.GetRemoteIssueLinks,
callback?: Callback<T>,
): Promise<void | T> {
Expand Down

0 comments on commit fa10e6b

Please sign in to comment.