forked from denoland/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
86 lines (71 loc) · 1.58 KB
/
types.ts
File metadata and controls
86 lines (71 loc) · 1.58 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export type Sidebar = SidebarSection[];
export type Path = string;
export type NavData = {
name: string;
href: string;
style?: string;
};
export type SidebarNav = SidebarNavItem[];
export interface SidebarNavItem {
title: string;
href: string;
items?: NavData[];
}
export interface SidebarSection {
title?: string;
href?: string;
items?: SidebarItem[];
}
export interface SidebarCategory {
label?: string;
items?: SidebarItem[];
}
export interface SidebarDoc {
label?: string;
id?: string;
}
export interface SidebarLink {
label: string;
href?: string;
id?: string;
}
export interface SidebarSectionProps {
section: SidebarSection;
search: import("lume/core/searcher.ts").default;
url: string;
headerPath: string;
}
export type TitleContent = string | JSX.Element;
export interface SidebarItem {
title: TitleContent;
label?: string;
href?: string;
items?: SidebarItem[];
externalUrl?: string;
type?: "video" | "example" | "tutorial";
}
export interface NavigationData {
sectionData: SidebarItem[];
currentUrl: string;
}
export type TableOfContents = TableOfContentsItem[];
export interface TableOfContentsItem {
text: string;
slug: string;
children: TableOfContentsItem[];
}
export interface FeedbackSubmission {
path: string;
sentiment: "yes" | "no";
comment?: string;
contact?: string; // Now represents GitHub username instead of email
id?: string | null;
}
export interface GoogleSheetsUpdateResponse {
updates: {
updatedRange: string;
updatedRows: number;
updatedColumns: number;
updatedCells: number;
};
}