UNPKG

1.34 kBTypeScriptView Raw
1export declare type ArchiveBaseInfo = {
2 sha1: string;
3 sha256: string;
4 url: string;
5};
6export declare type DownloadInfo = {
7 edition: 'enterprise' | 'targeted' | 'base' | 'source' | 'subscription';
8 target?: string;
9 arch?: string;
10 archive: {
11 debug_symbols: string;
12 } & ArchiveBaseInfo;
13 cryptd?: ArchiveBaseInfo;
14 csfle?: ArchiveBaseInfo;
15 crypt_shared?: ArchiveBaseInfo;
16 shell?: ArchiveBaseInfo;
17 packages?: string[];
18 msi?: string;
19};
20export declare type VersionInfo = {
21 changes: string;
22 notes: string;
23 date: string;
24 githash: string;
25 continuous_release: boolean;
26 current: boolean;
27 development_release: boolean;
28 lts_release: boolean;
29 production_release: boolean;
30 release_candidate: boolean;
31 version: string;
32 downloads: DownloadInfo[];
33};
34export declare type ReleaseTag = 'continuous_release' | 'development_release' | 'production_release' | 'release_candidate' | '*';
35export declare type VersionListOpts = {
36 version?: string;
37 versionListUrl?: string;
38 cachePath?: string;
39 cacheTimeMs?: number;
40 productionOnly?: boolean;
41 allowedTags?: readonly ReleaseTag[];
42};
43export declare function getVersion(opts: VersionListOpts): Promise<VersionInfo>;
44export declare function clearCache(cachePath?: string): Promise<void>;