-
Notifications
You must be signed in to change notification settings - Fork 565
/
Copy pathindex.ts
115 lines (112 loc) · 2.39 KB
/
index.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
export type QueryOrder =
| 'relevance'
| 'updated'
| 'added'
| 'recommended'
| 'quality'
| 'popularity'
| 'issues'
| 'downloads'
| 'stars';
export type QueryOrderDirection = 'descending' | 'ascending';
export type Query = {
android?: string;
expoGo?: string;
ios?: string;
macos?: string;
tvos?: string;
visionos?: string;
web?: string;
windows?: string;
order?: QueryOrder;
direction?: QueryOrderDirection;
search?: string;
offset?: string | number;
limit?: string | number;
hasExample?: string;
hasImage?: string;
hasTypes?: string;
isMaintained?: string;
isPopular?: string;
isRecommended?: string;
wasRecentlyUpdated?: string;
minPopularity?: string | number;
minMonthlyDownloads?: string | number;
newArchitecture?: string;
};
export type Library = {
goldstar?: boolean;
githubUrl: string;
ios?: boolean;
android?: boolean;
web?: boolean;
expoGo?: boolean;
windows?: boolean;
macos?: boolean;
tvos?: boolean;
visionos?: boolean;
unmaintained?: boolean | string;
dev?: boolean;
template?: boolean;
newArchitecture?: boolean | string;
newArchitectureNote?: string;
alternatives?: string[];
github: {
name: string;
isPackagePrivate: boolean;
fullName: string;
description: string;
registry?: string;
topics?: string[];
hasTypes?: boolean;
newArchitecture?: boolean;
isArchived?: boolean;
urls: {
repo: string;
clone: string;
homepage?: string | null;
};
stats: {
hasIssues: boolean;
hasWiki: boolean;
hasSponsorships: boolean;
hasTopics?: boolean;
updatedAt: Date | string;
createdAt: Date | string;
pushedAt: Date | string;
issues: number;
subscribers: number;
stars: number;
forks: number;
};
license: {
key: string;
name: string;
spdxId: string;
url: string;
id: string;
};
lastRelease?: {
name: string;
tagName: string;
createdAt: Date | string;
publishedAt: Date | string;
isPrerelease: boolean;
};
};
npm?: {
downloads?: number;
weekDownloads?: number;
start?: string;
end?: string;
period?: string;
};
score: number;
matchingScoreModifiers: string[];
topicSearchString: string;
examples?: string[];
images?: string[];
npmPkg?: string;
popularity?: number;
matchScore?: number;
};