-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathtypes.ts
42 lines (35 loc) · 849 Bytes
/
types.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
export type Sidebar = SidebarItem[];
export type Path = string;
export interface SidebarItem {
title: 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";
id?: string | null;
comment?: string;
contact?: string;
}
export interface GoogleSheetsUpdateResponse {
updates: {
updatedRange: string;
updatedRows: number;
updatedColumns: number;
updatedCells: number;
};
}
export type NavData = { name: string; href: string };