mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-26 12:33:39 +00:00
add update/delete/edit/add deck functionality
This commit is contained in:
@@ -63,4 +63,12 @@ export type GetDecksArgs = {
|
||||
itemsPerPage?: number
|
||||
}
|
||||
|
||||
export type CreateDeckArgs = {
|
||||
name: string
|
||||
isPrivate?: boolean
|
||||
cover?: string
|
||||
}
|
||||
|
||||
export type UpdateDeckArgs = Partial<CreateDeckArgs> & { id: Deck['id'] }
|
||||
|
||||
export type Tab = 'all' | 'my'
|
||||
|
||||
Reference in New Issue
Block a user