@types/electron-packager
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
// Type definitions for electron-packager 13.0 | ||
// Type definitions for electron-packager 14.0 | ||
// Project: https://github.com/electron-userland/electron-packager | ||
@@ -10,5 +10,12 @@ // Definitions by: Maxime LUCE <https://github.com/SomaticIT> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.9 | ||
/// <reference types="node" /> | ||
/// <reference types='node' /> | ||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
import { ElectronDownloadRequestOptions as ElectronDownloadOptions } from '@electron/get'; | ||
import { NotarizeOptions } from 'electron-notarize'; | ||
import { SignOptions as OsXSignOptions } from 'electron-osx-sign'; | ||
export = electronPackager; | ||
@@ -27,3 +34,3 @@ | ||
*/ | ||
declare function electronPackager(opts: electronPackager.Options): Promise<string|string[]>; | ||
declare function electronPackager(opts: electronPackager.Options): Promise<string | string[]>; | ||
@@ -37,8 +44,14 @@ declare namespace electronPackager { | ||
*/ | ||
type finalCallback = (err: Error, appPaths: string|string[]) => void; | ||
type finalCallback = (err: Error, appPaths: string | string[]) => void; | ||
type ignoreFunction = (path: string) => boolean; | ||
type onCompleteFn = (buildPath: string, electronVersion: string, platform: string, arch: string, callbackFn: () => void) => void; | ||
type arch = "ia32" | "x64" | "armv7l" | "arm64" | "mips64el" | "all"; | ||
type platform = "linux" | "win32" | "darwin" | "mas" | "all"; | ||
type onCompleteFn = ( | ||
buildPath: string, | ||
electronVersion: string, | ||
platform: string, | ||
arch: string, | ||
callbackFn: () => void | ||
) => void; | ||
type arch = 'ia32' | 'x64' | 'armv7l' | 'arm64' | 'mips64el' | 'all'; | ||
type platform = 'linux' | 'win32' | 'darwin' | 'mas' | 'all'; | ||
@@ -51,30 +64,11 @@ interface AsarOptions { | ||
interface ElectronDownloadOptions { | ||
cache?: string; | ||
mirror?: string; | ||
quiet?: boolean; | ||
strictSSL?: boolean; | ||
// see https://github.com/electron-userland/electron-packager/blob/92d09bba34599283a794fd6f24b88470f0cb1074/src/mac.js#L340 | ||
interface ElectronOsXSignOptions | ||
extends Omit<OsXSignOptions, 'app' | 'binaries' | 'identity' | 'platform' | 'version'> { | ||
identity?: string | true; | ||
} | ||
interface ElectronNotarizeOptions { | ||
appleId: string; | ||
appleIdPassword: string; | ||
} | ||
// see https://github.com/electron-userland/electron-packager/blob/92d09bba34599283a794fd6f24b88470f0cb1074/src/mac.js#L372 | ||
type ElectronNotarizeOptions = Omit<NotarizeOptions, 'appBundleId' | 'appPath'>; | ||
interface ElectronOsXSignOptions { | ||
entitlements?: string; | ||
"entitlements-inherit"?: string; | ||
"gatekeeper-assess"?: boolean; | ||
// see https://github.com/electron-userland/electron-packager/blob/92d09bba34599283a794fd6f24b88470f0cb1074/src/mac.js#L359 | ||
identity?: string | true; | ||
"identity-validation"?: boolean; | ||
ignore?: string; | ||
keychain?: string; | ||
"pre-auto-entitlements"?: boolean; | ||
"pre-embed-provisioning-profile"?: boolean; | ||
"provisioning-profile"?: string; | ||
requirements?: string; | ||
type?: string; | ||
} | ||
/** | ||
@@ -89,4 +83,4 @@ * Object (also known as a "hash") of application metadata to embed into the executable | ||
InternalName?: string; | ||
"requested-execution-level"?: "asInvoker" | "highestAvailable" | "requireAdministrator"; | ||
"application-manifest"?: string; | ||
'requested-execution-level'?: 'asInvoker' | 'highestAvailable' | 'requireAdministrator'; | ||
'application-manifest'?: string; | ||
} | ||
@@ -140,3 +134,3 @@ | ||
/** | ||
* If present, passes custom options to electron-download | ||
* If present, passes custom options to `@electron/get` | ||
*/ | ||
@@ -208,3 +202,3 @@ download?: ElectronDownloadOptions; | ||
*/ | ||
extendInfo?: string | {[property: string]: any}; | ||
extendInfo?: string | { [property: string]: any }; | ||
/** | ||
@@ -229,4 +223,4 @@ * The bundle identifier to use in the application helper's plist. | ||
protocols?: Array<{ | ||
name: string | ||
schemes: string[] | ||
name: string; | ||
schemes: string[]; | ||
}>; | ||
@@ -233,0 +227,0 @@ |
{ | ||
"name": "@types/electron-packager", | ||
"version": "13.0.1", | ||
"version": "14.0.0", | ||
"description": "TypeScript definitions for electron-packager", | ||
@@ -47,6 +47,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/node": "*" | ||
"@electron/get": "^1.3.1", | ||
"@types/node": "*", | ||
"electron-notarize": "^0.1.1", | ||
"electron-osx-sign": "^0.4.11" | ||
}, | ||
"typesPublisherContentHash": "4708e28d829ecda255e4daf8e0b34d41a1d6346942ce436343dd90064e349aa5", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "42698408cdf32b2dd3afbd2f2d663cdcf5ffb4bb731e21f005b0d370f32f11ef", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 25 Jun 2019 17:25:04 GMT | ||
* Dependencies: @types/node | ||
* Last updated: Wed, 26 Jun 2019 16:57:58 GMT | ||
* Dependencies: @types/electron__get, @types/electron-notarize, @types/electron-osx-sign, @types/node | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
13001
1.56%4
300%209
-3.24%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added