From fa10e6b907e38fda92a466aa795eade874691484 Mon Sep 17 00:00:00 2001 From: Fernando Maia Date: Wed, 3 Jan 2024 09:09:05 +0000 Subject: [PATCH] fixes issue remote links return type (#296) --- src/version2/issueRemoteLinks.ts | 6 +++--- src/version3/issueRemoteLinks.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/version2/issueRemoteLinks.ts b/src/version2/issueRemoteLinks.ts index 5fa9c64974..12943c64cd 100644 --- a/src/version2/issueRemoteLinks.ts +++ b/src/version2/issueRemoteLinks.ts @@ -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( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks | string, callback: Callback, ): Promise; @@ -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( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks | string, callback?: never, ): Promise; - async getRemoteIssueLinks( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks | string, callback?: Callback, ): Promise { diff --git a/src/version3/issueRemoteLinks.ts b/src/version3/issueRemoteLinks.ts index f923647c29..188d1f5376 100644 --- a/src/version3/issueRemoteLinks.ts +++ b/src/version3/issueRemoteLinks.ts @@ -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( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks, callback: Callback, ): Promise; @@ -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( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks, callback?: never, ): Promise; - async getRemoteIssueLinks( + async getRemoteIssueLinks( parameters: Parameters.GetRemoteIssueLinks, callback?: Callback, ): Promise {