forked from GantMan/react-native-siren
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
69 lines (64 loc) · 1.66 KB
/
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
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
type ITunesResponse = {
screenshotUrls: string[];
ipadScreenshotUrls: string[];
appletvScreenshotUrls: string[];
artworkUrl60: string;
artworkUrl512: string;
artworkUrl100: string;
artistViewUrl: string;
supportedDevices: string[];
advisories: string[];
isGameCenterEnabled: string[];
features: string[];
kind: string;
trackCensoredName: string;
languageCodesISO2A: string[];
fileSizeBytes: string;
contentAdvisoryRating: string;
averageUserRatingForCurrentVersion: number;
userRatingCountForCurrentVersion: number;
averageUserRating: number;
trackViewUrl: string;
trackContentRating: string;
isVppDeviceBasedLicensingEnabled: boolean;
trackId: number;
trackName: string;
releaseDate: string;
genreIds: string[];
formattedPrice: string;
primaryGenreName: string;
minimumOsVersion: string;
currentVersionReleaseDate: string;
releaseNotes: string;
primaryGenreId: number;
sellerName: string;
currency: string;
description: string;
artistId: number;
artistName: string;
genres: string[];
price: number;
bundleId: string;
version: string;
wrapperType: string;
userRatingCount: number;
};
type PromptUserOptions = {
title?: string;
message?: string;
buttonUpgradeText?: string;
buttonCancelText?: string;
forceUpgrade?: boolean;
};
type VersionSpecificOptions = {
localVersion: string;
} & PromptUserOptions;
type PerformCheck = {
updateIsAvailable: boolean;
latestInfo: ITunesResponse;
}
declare const siren: {
promptUser: (defaultOptions: PromptUserOptions = {}, versionSpecificOptions: VersionSpecificOptions[] = []) => void;
performCheck: () => Promise<PerformCheck>;
}
export default siren;