-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.ts
More file actions
61 lines (50 loc) · 1.21 KB
/
types.ts
File metadata and controls
61 lines (50 loc) · 1.21 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
import { ImageSourcePropType } from "react-native"
import { Author, Link, Maybe } from "rss-parserr/lib/types"
export interface FeedCategory {
name: string,
colour: string,
imageURL: ImageSourcePropType,
}
export interface Article {
authors: Author[] | string,
title?: string,
description?: string,
link?: Link[],
published?: string,
image: Maybe<string>,
publisherImage: Maybe<string>
}
export interface Feed {
id: string,
title: string,
feedProviders: FeedlyProvider[]
}
export type ReadingMode = "card" | "title-only"
export type SortMode = "asc" | "desc"
export interface FeedlyProvider {
feedId: string,
subscribers: number,
title: string,
//Optional Fields
description?: string,
website?: string,
lastUpdated?: number,
velocity?: number,
language?: string,
featured?: boolean,
iconUrl?: string,
visualUrl?: string,
coverUrl?: string,
logo?: string,
curated?: boolean,
partial?: boolean,
contentType?: string,
coverColor?: string,
deliciousTags?: string[],
topics?: string[],
}
export interface FeedlyQueryResponse {
hint: string,
related: string[],
results: FeedlyProvider[]
}