This commit is contained in:
2026-06-25 18:40:57 -07:00
parent 5585d497c9
commit ba9e888955
7 changed files with 25 additions and 22 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
import http from "@/api/http-client"
import { type FiltersOptions, type ModelOrder, type Policy, type WhereOptions } from "@/api/base-api"
import {
type FiltersOptions,
type ModelOrder,
type Policy,
type WhereOptions,
} from "@/api/base-api"
export type FlashcardDeck = {
id: number
+8 -4
View File
@@ -1,18 +1,22 @@
import http from "@/api/http-client"
import { type FiltersOptions, type ModelOrder, type Policy, type WhereOptions } from "@/api/base-api"
import {
type FiltersOptions,
type ModelOrder,
type Policy,
type WhereOptions,
} from "@/api/base-api"
export type Flashcard = {
id: number
flashcardDeckId: number
creatorId: number
cardType: string
front: string
back: string | null
back: string
createdAt: string
updatedAt: string
}
export type FlashcardWhereOptions = WhereOptions<Flashcard, "flashcardDeckId" | "creatorId" | "cardType">
export type FlashcardWhereOptions = WhereOptions<Flashcard, "flashcardDeckId" | "creatorId">
export type FlashcardFiltersOptions = FiltersOptions<{
search: string | string[]