-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.d.ts
37 lines (33 loc) · 854 Bytes
/
models.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
interface Card {
id: string;
type?: string;
content?: string;
board_id: string;
title: string;
date?: string;
}
interface Board {
id: string;
title: string;
}
interface Alert {
titie?: string;
variant: "success" | "danger";
text: string;
}
interface ContextDefault {
cards?: Card[];
boards?: Board[];
addNewBoard: (board: Board) => void;
addNewCard: (card: Card) => void;
editCard: (editedCard: Card) => void;
deleteCard: (deletedCard: Card) => void;
editBoard: (editedBoard: Board) => void;
deleteBoard: (deletedBoard: Board) => void;
reorderCards: (result: { [key: string]: any }) => void;
reorderBoards: (result: { [key: string]: any }) => void;
alert: Alert;
showAlert: (alert: Alert) => void;
resetAlert: () => void;
}
type DefaultRegisterValues = { trollo_name: string; trollo_company: string };