From b4533bc6cca8eb85324f3e0e7a6b3eaf4019b030 Mon Sep 17 00:00:00 2001 From: Payton Swick Date: Tue, 10 Sep 2024 16:13:52 -0400 Subject: [PATCH] Remove gitnews typedef file since we no longer use it --- src/renderer/gitnews.d.ts | 54 --------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/renderer/gitnews.d.ts diff --git a/src/renderer/gitnews.d.ts b/src/renderer/gitnews.d.ts deleted file mode 100644 index 3be05f2..0000000 --- a/src/renderer/gitnews.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -declare module 'gitnews' { - export interface NoteGetterOptions { - log: (message: string) => void; - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise; - } - - export type NoteReason = - | 'assign' - | 'author' - | 'ci_activity' - | 'comment' - | 'manual' - | 'mention' - | 'push' - | 'review_requested' - | 'security_alert' - | 'state_change' - | 'subscribed' - | 'team_mention' - | 'your_activity'; - - export interface NoteApi { - subject?: { state?: string; merged?: boolean }; - notification?: { reason?: NoteReason }; - } - - export interface Note { - id: string; - title: string; - unread: boolean; - repositoryFullName: string; - api: NoteApi; - commentUrl: string; - - /** - * ISO 8601 formatted date string like `2017-08-23T18:20:00Z`. - */ - updatedAt: string; - - repositoryName: string; - type: string; - subjectUrl: string; - commentAvatar?: string; - repositoryOwnerAvatar?: string; - } - - export type GetNotes = (token: string) => Promise; - - export type MarkNoteRead = (token, note: Note) => void; - - export function createNoteGetter(options: NoteGetterOptions): GetNotes; - - export function createNoteMarkRead(options: NoteGetterOptions): MarkNoteRead; -}