aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/IDB/chapters.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Database/IDB/chapters.ts')
-rw-r--r--src/lib/Database/IDB/chapters.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/Database/IDB/chapters.ts b/src/lib/Database/IDB/chapters.ts
index 0f77f0a0..571c16e1 100644
--- a/src/lib/Database/IDB/chapters.ts
+++ b/src/lib/Database/IDB/chapters.ts
@@ -1,22 +1,22 @@
import Dexie, { type Table } from 'dexie';
export interface Chapter {
- id: number;
- chapters: number | null;
- volumes: number | null;
+ id: number;
+ chapters: number | null;
+ volumes: number | null;
}
export class ChapterDatabase extends Dexie {
- chapters: Table<Chapter>;
+ chapters: Table<Chapter>;
- constructor() {
- super('chapters');
- this.version(1).stores({
- chapters: 'id, chapters, volumes'
- });
+ constructor() {
+ super('chapters');
+ this.version(1).stores({
+ chapters: 'id, chapters, volumes'
+ });
- this.chapters = this.table('chapters');
- }
+ this.chapters = this.table('chapters');
+ }
}
export const database = new ChapterDatabase();