We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9533d7e commit 5193d1eCopy full SHA for 5193d1e
1 file changed
src/renderer/utils/api/client.ts
@@ -19,11 +19,6 @@ import type {
19
ListNotificationsForAuthenticatedUserResponse,
20
MarkNotificationThreadAsDoneResponse,
21
MarkNotificationThreadAsReadResponse,
22
- NotificationThreadSubscription,
23
- RawCommit,
24
- RawCommitComment,
25
- RawGitHubNotification,
26
- RawRelease,
27
} from './types';
28
29
import { isAnsweredDiscussionFeatureSupported } from '../features';
@@ -185,9 +180,11 @@ export function getRelease(
185
180
186
181
/**
187
182
* Get the `html_url` from the GitHub response
183
+ *
188
184
*/
189
export async function getHtmlUrl(url: Link, token: Token): Promise<string> {
190
try {
+ // TODO - Add explicit type for response shape
191
const response = (await apiRequestAuth(url, 'GET', token)).data;
192
193
return response.html_url;
0 commit comments