Skip to content

Commit 3a050b5

Browse files
committed
refactor types
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 3200097 commit 3a050b5

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/renderer/utils/api/types.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ export type RawGitHubNotification =
2929
export type RawUser = components['schemas']['simple-user'];
3030

3131
/**
32-
* These API endpoints don't return a response body
32+
* These API endpoints don't return a response body:
33+
* - HEAD /notifications
34+
* - Endpoints['PATCH /notifications/threads/{thread_id}']['response']['data']
35+
* - Endpoints['DELETE /notifications/threads/{thread_id}']['response']['data']
3336
*/
34-
// HEAD request - no response body
35-
export type HeadNotificationsResponse = NoResponseBody;
37+
// biome-ignore lint/suspicious/noConfusingVoidType: This endpoint has no response body
38+
export type HeadNotificationsResponse = void;
3639

37-
// Endpoints['PATCH /notifications/threads/{thread_id}']['response']['data'];
38-
export type MarkNotificationThreadAsReadResponse = NoResponseBody;
40+
// biome-ignore lint/suspicious/noConfusingVoidType: This endpoint has no response body
41+
export type MarkNotificationThreadAsReadResponse = void;
3942

40-
// Endpoints['DELETE /notifications/threads/{thread_id}']['response']['data']
41-
export type MarkNotificationThreadAsDoneResponse = NoResponseBody;
42-
43-
type NoResponseBody = void;
43+
// biome-ignore lint/suspicious/noConfusingVoidType: This endpoint has no response body
44+
export type MarkNotificationThreadAsDoneResponse = void;

0 commit comments

Comments
 (0)