Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
aleganza committed Oct 18, 2024
1 parent 68b6eef commit 1a1f99b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/modules/anilist/anilistApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { clientData } from '../clientData';
import isAppImage from '../packaging/isAppImage';
import { getOptions, makeRequest } from '../requests';


const STORE: any = new Store();
const CLIENT_DATA: ClientData = clientData;
const PAGES: number = 20;
Expand Down
1 change: 1 addition & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default function App() {
const historyAvailable = Object.values(entries).length > 0;

let result: ListAnimeData[] = [];

const sortNewest = (a: ListAnimeData, b: ListAnimeData) =>
(getLastWatchedEpisode(
(b.media.id ??
Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/styles/Buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ button.bm .primary {
border: none;
outline: none;
width: max-content;
cursor: pointer;
height: 50px;
padding: 12px 24px;
font-size: 1.1rem;
Expand Down
16 changes: 9 additions & 7 deletions src/types/anilistGraphQLTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ export type AiringSchedule = {
media?: Media;
};

export type AiringScheduleConnection = {
edges?: Array<{
node?: {
episode: number;
};
}>;
};

export type MediaListStatus =
| 'CURRENT'
| 'PLANNING'
Expand Down Expand Up @@ -155,13 +163,7 @@ export type Media = {
favourites?: number;
isAdult?: boolean;
nextAiringEpisode?: AiringSchedule;
airingSchedule?: {
edges?: Array<{
node?: {
episode: number;
};
}>;
};
airingSchedule?: AiringScheduleConnection;
mediaListEntry?: MediaList;
siteUrl?: string;
trailer?: MediaTrailer;
Expand Down

0 comments on commit 1a1f99b

Please sign in to comment.