diff --git a/src/renderer/utils/forges/github/client.ts b/src/renderer/utils/forges/github/client.ts index d3e9552f6..1f7d39bc8 100644 --- a/src/renderer/utils/forges/github/client.ts +++ b/src/renderer/utils/forges/github/client.ts @@ -9,8 +9,6 @@ import type { GetReleaseResponse, IgnoreNotificationThreadSubscriptionResponse, ListNotificationsForAuthenticatedUserResponse, - MarkNotificationThreadAsDoneResponse, - MarkNotificationThreadAsReadResponse, } from './types'; import { reportServerPollInterval } from '../../notifications/pollInterval'; @@ -105,7 +103,7 @@ export async function listNotificationsForAuthenticatedUser( export async function markNotificationThreadAsRead( account: Account, threadId: string, -): Promise { +): Promise { const octokit = await createOctokitClient(account, 'rest'); const response = await octokit.rest.activity.markThreadAsRead({ @@ -126,7 +124,7 @@ export async function markNotificationThreadAsRead( export async function markNotificationThreadAsDone( account: Account, threadId: string, -): Promise { +): Promise { const octokit = await createOctokitClient(account, 'rest'); const response = await octokit.rest.activity.markThreadAsDone({ diff --git a/src/renderer/utils/forges/github/types.ts b/src/renderer/utils/forges/github/types.ts index 8ff95f22f..71ad1f115 100644 --- a/src/renderer/utils/forges/github/types.ts +++ b/src/renderer/utils/forges/github/types.ts @@ -23,14 +23,3 @@ export type GetReleaseResponse = export type RawGitHubNotification = Endpoints['GET /notifications']['response']['data'][number]; export type RawUser = components['schemas']['simple-user']; - -/** - * These API endpoints don't return a response body: - * - Endpoints['PATCH /notifications/threads/{thread_id}']['response']['data'] - * - Endpoints['DELETE /notifications/threads/{thread_id}']['response']['data'] - */ -// oxlint-disable-next-line typescript/no-invalid-void-type -- This endpoint has no response body -export type MarkNotificationThreadAsReadResponse = void; - -// oxlint-disable-next-line typescript/no-invalid-void-type -- This endpoint has no response body -export type MarkNotificationThreadAsDoneResponse = void;