diff options
Diffstat (limited to 'src/client/atoms/cards.ts')
| -rw-r--r-- | src/client/atoms/cards.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/atoms/cards.ts b/src/client/atoms/cards.ts index 225d78c..4a6e72e 100644 --- a/src/client/atoms/cards.ts +++ b/src/client/atoms/cards.ts @@ -1,6 +1,7 @@ import { atomFamily } from "jotai-family"; import { atomWithSuspenseQuery } from "jotai-tanstack-query"; import { apiClient } from "../api/client"; +import type { CardStateType } from "../db"; export interface Card { id: string; @@ -9,12 +10,19 @@ export interface Card { isReversed: boolean; front: string; back: string; - state: number; + state: CardStateType; due: string; + stability: number; + difficulty: number; + elapsedDays: number; + scheduledDays: number; reps: number; lapses: number; + lastReview: string | null; createdAt: string; updatedAt: string; + deletedAt: string | null; + syncVersion: number; } // ===================== |
