-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathindex.d.ts
63 lines (56 loc) · 1.17 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import type { PageProps } from '@inertiajs/core';
import type { LucideIcon } from 'lucide-vue-next';
import type { Config } from 'ziggy-js';
export interface Auth {
user: User;
}
export interface BreadcrumbItem {
title: string;
href: string;
}
export interface NavItem {
title: string;
href: string;
icon?: LucideIcon;
isActive?: boolean;
}
export interface SharedData extends PageProps {
name: string;
quote: { message: string; author: string };
auth: Auth;
ziggy: Config & { location: string };
sidebarOpen: boolean;
}
export interface User {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
created_at: string;
updated_at: string;
}
export interface PaginatedResult<T> {
data: T[];
links: {
first: string;
last: string;
next?: string;
prev?: string;
};
meta: {
current_page: number;
from?: number;
last_page: number;
links: {
active: boolean;
label: string;
url?: string;
}[];
path: string;
per_page: number;
to?: number;
total: number;
};
};
export type BreadcrumbItemType = BreadcrumbItem;