-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from glawson/make-windows-work
Add Windows support for app second-instance event.
- Loading branch information
Showing
12 changed files
with
6,006 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
declare const EventEmitter: any; | ||
interface EventHandler { | ||
(event: Event, args: string): void; | ||
} | ||
interface FuncBool { | ||
(param?: any): boolean; | ||
} | ||
interface FuncVoid { | ||
(param?: any): void; | ||
} | ||
interface FuncString { | ||
(param?: any): string; | ||
} | ||
interface On { | ||
(event: string, callback: EventHandler): void; | ||
} | ||
interface App { | ||
requestSingleInstanceLock: FuncBool; | ||
isDefaultProtocolClient: FuncBool; | ||
setAsDefaultProtocolClient: FuncVoid; | ||
quit: FuncVoid; | ||
on: On; | ||
getAppPath: FuncString; | ||
} | ||
interface MainWindow { | ||
isMinimized: FuncBool; | ||
restore: FuncVoid; | ||
focus: FuncVoid; | ||
} | ||
interface DeeplinkConfig { | ||
protocol: string; | ||
app: App; | ||
mainWindow: MainWindow; | ||
isDev?: boolean; | ||
isYarn?: boolean; | ||
debugLogging?: boolean; | ||
} | ||
declare class Deeplink extends EventEmitter { | ||
private appPath?; | ||
private electronPath?; | ||
private infoPlistFile?; | ||
private infoPlistFileBak?; | ||
private logger?; | ||
private app; | ||
private mainWindow; | ||
private config; | ||
constructor(config: DeeplinkConfig); | ||
private checkConfig; | ||
private setAppProtocol; | ||
private secondInstanceEvent; | ||
private openEvent; | ||
restoreInfoPlist: () => void; | ||
getProtocol: () => string | null; | ||
getLogfile: () => any; | ||
} | ||
export { Deeplink }; | ||
declare const EventEmitter: any; | ||
interface FuncBool { | ||
(param?: any): boolean; | ||
} | ||
interface FuncVoid { | ||
(param?: any, path?: any, argv?: any): void; | ||
} | ||
interface FuncString { | ||
(param?: any): string; | ||
} | ||
interface OnCallback { | ||
(event: Event, argv: any): void; | ||
} | ||
interface On { | ||
(event: string, callback: OnCallback): void; | ||
} | ||
interface App { | ||
requestSingleInstanceLock: FuncBool; | ||
isDefaultProtocolClient: FuncBool; | ||
setAsDefaultProtocolClient: FuncVoid; | ||
quit: FuncVoid; | ||
on: On; | ||
getAppPath: FuncString; | ||
} | ||
interface MainWindow { | ||
isMinimized: FuncBool; | ||
restore: FuncVoid; | ||
focus: FuncVoid; | ||
} | ||
interface DeeplinkConfig { | ||
protocol: string; | ||
app: App; | ||
mainWindow: MainWindow; | ||
isDev?: boolean; | ||
isYarn?: boolean; | ||
debugLogging?: boolean; | ||
} | ||
declare class Deeplink extends EventEmitter { | ||
private appPath?; | ||
private electronPath?; | ||
private infoPlistFile?; | ||
private infoPlistFileBak?; | ||
private logger?; | ||
private app; | ||
private mainWindow; | ||
private config; | ||
constructor(config: DeeplinkConfig); | ||
private checkConfig; | ||
private setAppProtocol; | ||
private secondInstanceEvent; | ||
private openEvent; | ||
restoreInfoPlist: () => void; | ||
getProtocol: () => string | null; | ||
getLogfile: () => any; | ||
} | ||
export { Deeplink }; |
Oops, something went wrong.