-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathapp.d.ts
More file actions
102 lines (88 loc) · 2.37 KB
/
app.d.ts
File metadata and controls
102 lines (88 loc) · 2.37 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/// <reference types="@sveltejs/kit" />
/// <reference types="svelte-gestures" />
/// <reference types="$config" />
/// <reference types="svelte" />
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare namespace App {
// interface Locals {}
// interface Platform {}
// interface Session {}
// interface Stuff {}
interface Reference {
docSet: string;
book: string;
chapter: string;
verse: string;
}
interface Paragraph {
[key: number]: {
[key: string]: string;
};
}
interface BibleText {
title: string;
book: string;
chapter: string;
bookmark: string;
paragraphs: Paragraph[];
}
interface Highlight {
id: string;
reference: string;
text: string;
date: string;
actions: string[];
penColor: string;
}
type MenuActionHandler = (args: { text: string; url: string }) => void;
type TabMenuActionHandler = (args: { text: string; url: string; tab: string }) => void;
interface TabMenuOptions {
[key: string]: {
tab?: {
icon?: Snippet<[string]>;
};
snippet?: Snippet<[string, TabMenuActionHandler]>;
visible: boolean;
};
}
interface GridEntry {
id: string;
label: string;
}
interface GridGroup {
header?: string;
rows?: GridEntry[];
cells?: GridEntry[];
}
interface CollectionEntry {
id: string;
name?: string;
// boolean value for if a collection is allowed
// to be shown in single pane view
singlePane: boolean;
description?: string;
image?: string;
}
interface CollectionGroup {
singlePane?: CollectionEntry;
sideBySide?: [CollectionEntry, CollectionEntry];
verseByVerse?: [CollectionEntry, CollectionEntry, CollectionEntry];
}
interface UserPreferenceSetting {
type: 'checkbox' | 'list' | 'time';
category: string;
title: string;
summary?: string;
key: string;
entries?: string[];
values?: string[];
value?: FeatureValue;
defaultValue?: FeatureValue;
}
}
declare namespace svelte.JSX {
interface HTMLProps<T> {
onoutclick?: () => void;
}
}