93 lines
1.9 KiB
TypeScript
Raw Normal View History

type OpenData = {
card: CardItem,
qry: string
}
type WordLookupResult = {
refs: string[],
word: string,
status: Status,
msg: string
}
enum Status { Success, Failure };
type IndexResult = {
refs: string[];
word: string;
}
type CardItem = { data: any, type: string, dict: string }
type User = {
strongs_modal: boolean,
clear_search_after_query: boolean,
items: CardItem[],
append_to_bottom: boolean,
insert_next_to_item: boolean
}
type BiblePassage = {
ch: number,
vss: BibleVerse[]
}
type BibleVerse = {
v: number,
w: [
{
t: string, s: string
}
]
}
type BiblePassageResult = {
cs: BiblePassage[],
testament: string,
2016-09-12 18:13:56 -04:00
ref: string
}
2016-09-12 18:13:56 -04:00
type StrongsDefinition = { n: number, i: string, tr: string, de: string, lemma: string, p: string }
type StrongsCrossReference =
{
id: string, // strongs id H1|G1
t: string, // strongs testament grk|heb
d: string, // strongs word/data Aaron {ah-ar-ohn'}
ss: [
{
w: string,
rs: [
{ r: string }
]
}
]
}
type RMACDefinition = { id: string, d: string[] }
type RMACCrossReference = { i: string, r: string }
type StrongsResult =
{
prefix: string,
sn: number,
strongs: StrongsDefinition[],
def: StrongsDefinition,
rmac: RMACDefinition,
crossrefs: StrongsCrossReference,
2016-09-12 18:13:56 -04:00
rmaccode: string,
};
type Section = {
start: {
book: number,
bookname: string,
longbookname: string,
lastchapter: number,
chapter: string,
verse: string
},
end: {
book: number,
bookname: string,
longbookname: string,
lastchapter: number,
chapter: string,
verse: string
}
};