-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
44 lines (38 loc) · 918 Bytes
/
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
export var TYPES : string[];
interface ISources {
all: "All Sources",
G: "Guru Granth Sahib Ji",
D: "Dasam Granth Sahib",
B: "Bhai Gurdas Ji Vaaran",
A: "Amrit Keertan",
S: "Bhai Gurdas Singh Ji Vaaran",
N: "Bhai Nand Lal Ji Vaaran",
R: "Rehatnamas & Panthic Sources"
}
export var SOURCES : ISources;
interface ISources_WITH_ANG {
G: ISources["G"],
D: ISources["D"],
B: ISources["B"],
S: ISources["S"],
}
export var SOURCES_WITH_ANG: ISources_WITH_ANG;
interface IOptions {
q: string,
source: keyof ISources,
type: number,
writer: number,
raag: number,
ang: number,
results: number,
offset: number,
id: number,
hukam: number,
akhar: boolean,
lipi: boolean,
random: boolean,
randomid: boolean,
API_URL: string,
livesearch: boolean,
}
export const buildApiUrl : (options: Partial<IOptions>) => string;