@proton-app/main 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,4 +46,12 @@ type IpcClient = Pick<IpcRenderer, "send" | "invoke">;
46
46
  * Creates the standard application controls exposed by an Electron preload.
47
47
  */
48
48
  export declare function createAppBridge(ipc: IpcClient): AppBridge;
49
+ export type IpcApi<T> = {
50
+ [Namespace in keyof T]: {
51
+ [Handler in keyof T[Namespace]]: T[Namespace][Handler] extends {
52
+ input: infer Input;
53
+ result: infer Result;
54
+ } ? (input: Input) => Promise<Result> : never;
55
+ };
56
+ };
49
57
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@proton-app/main",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "",
6
6
  "keywords": [],
7
7
  "author": "",