feat: use map instead of interface

This commit is contained in:
2024-07-14 23:50:16 +03:00
parent 5a4206a81e
commit 45389364ff
4 changed files with 21 additions and 24 deletions

View File

@@ -7,6 +7,4 @@ export interface CachedPage extends Page {
isManhwa: boolean;
}
export interface CachedPages {
[key: number]: CachedPage;
}
export type CachedPages = Map<number, CachedPage>;