diff --git a/packages/interprocess/CHANGELOG.md b/packages/interprocess/CHANGELOG.md index 4956942..986d8f7 100644 --- a/packages/interprocess/CHANGELOG.md +++ b/packages/interprocess/CHANGELOG.md @@ -1,5 +1,11 @@ # interprocess +## 0.2.4 + +### Patch Changes + +- fix invokers return type where promise return type was duplicated + ## 0.2.3 ### Patch Changes diff --git a/packages/interprocess/package.json b/packages/interprocess/package.json index 5389a81..376cc69 100644 --- a/packages/interprocess/package.json +++ b/packages/interprocess/package.json @@ -1,6 +1,6 @@ { "name": "interprocess", - "version": "0.2.3", + "version": "0.2.4", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/index.d.ts", diff --git a/packages/interprocess/src/factories/createMainInvokers.ts b/packages/interprocess/src/factories/createMainInvokers.ts index 938d2f8..7852a26 100644 --- a/packages/interprocess/src/factories/createMainInvokers.ts +++ b/packages/interprocess/src/factories/createMainInvokers.ts @@ -38,7 +38,7 @@ export function createMainInvokers>(props: T) { window: BrowserWindow, arg: Parameters[1], ...restOfArgs: any[] - ) => Promise> + ) => ReturnType } return invokers diff --git a/packages/interprocess/src/factories/createRendererInvokers.ts b/packages/interprocess/src/factories/createRendererInvokers.ts index bccebc1..4d9810c 100644 --- a/packages/interprocess/src/factories/createRendererInvokers.ts +++ b/packages/interprocess/src/factories/createRendererInvokers.ts @@ -18,7 +18,7 @@ export function createRendererInvokers>(props: T) { [Property in MainKeys]: ( arg: Parameters[1], ...restOfArgs: any[] - ) => Promise> + ) => ReturnType } return invokers