mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Convert store to typescript w/ matching interfaces
This commit is contained in:
4
src/interfaces/IStateDarkmode.ts
Normal file
4
src/interfaces/IStateDarkmode.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default interface IStateDarkmode {
|
||||
darkmodeSupported: boolean;
|
||||
userChoice: string | undefined;
|
||||
}
|
||||
5
src/interfaces/IStateDocumentTitle.ts
Normal file
5
src/interfaces/IStateDocumentTitle.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default interface IStateDocumentTitle {
|
||||
emoji: string;
|
||||
titlePrefix: string;
|
||||
title: string | undefined;
|
||||
}
|
||||
3
src/interfaces/IStateHamburger.ts
Normal file
3
src/interfaces/IStateHamburger.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default interface IStateHamburger {
|
||||
open: boolean;
|
||||
}
|
||||
16
src/interfaces/IStatePopup.ts
Normal file
16
src/interfaces/IStatePopup.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export enum PopupTypes {
|
||||
Movie = "movie",
|
||||
Show = "show",
|
||||
Person = "person"
|
||||
}
|
||||
|
||||
// export interface IPopupOpen {
|
||||
// id: string | number;
|
||||
// type: PopupTypes;
|
||||
// }
|
||||
|
||||
export interface IStatePopup {
|
||||
id: number | null;
|
||||
type: PopupTypes | null;
|
||||
open: boolean;
|
||||
}
|
||||
6
src/interfaces/IStateTorrent.ts
Normal file
6
src/interfaces/IStateTorrent.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type ITorrent from "./ITorrent";
|
||||
|
||||
export default interface IStateTorrent {
|
||||
results: Array<ITorrent>;
|
||||
resultCount: number | null;
|
||||
}
|
||||
11
src/interfaces/ITorrent.ts
Normal file
11
src/interfaces/ITorrent.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default interface ITorrent {
|
||||
name: string;
|
||||
magnet: string;
|
||||
uploader: string | null;
|
||||
size: string;
|
||||
date: string | Date;
|
||||
seed: string;
|
||||
leech: string;
|
||||
url: string | null;
|
||||
release_type: Array<string>;
|
||||
}
|
||||
Reference in New Issue
Block a user