forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.d.ts
64 lines (53 loc) · 1.25 KB
/
globals.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
// type annotations for package.json dependencies
type PackageLookup = { [key: string]: string }
type Package = {
dependencies: PackageLookup
devDependencies: PackageLookup
}
// type declarations for legal-eagle
type LicenseLookup = {
[key: string]: LicenseEntry
}
type LegalEagleOptions = {
path: string
overrides: LicenseLookup
omitPermissive?: boolean
}
type LicenseEntry = {
license: string
source: string
repository: string
sourceText: string
}
type LegalEagle = (
options: LegalEagleOptions,
callback: (error: Error | null, summary: LicenseLookup) => void
) => void
// type declarations for electron-installer-redhat
type RedhatOptions = {
src: string
dest: string
arch: string
}
type ElectronInstallerRedhat = (
options: RedhatOptions,
callback: (error: Error | null) => void
) => void
// type declarations for electron-installer-debian
type DebianOptions = {
src: string
dest: string
arch: string
}
type ElectronInstallerDebian = (
options: DebianOptions,
callback: (error: Error | null) => void
) => void
// type declarations for electron-installer-appimage
type AppImageOptions = {
dir: string
targetArch: string
}
type ElectronInstallerAppImage = {
default: (options: AppImageOptions) => Promise<void>
}