Skip to content

Commit

Permalink
fix(interprocess): invokers return type where promise return type was…
Browse files Browse the repository at this point in the history
… duplicated
  • Loading branch information
daltonmenezes committed Nov 22, 2022
1 parent 45bb8d1 commit ae7f4cf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/interprocess/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/interprocess/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/interprocess/src/factories/createMainInvokers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function createMainInvokers<T extends IPCFactoryProps<T>>(props: T) {
window: BrowserWindow,
arg: Parameters<Renderer[Property]>[1],
...restOfArgs: any[]
) => Promise<ReturnType<Renderer[Property]>>
) => ReturnType<Renderer[Property]>
}

return invokers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function createRendererInvokers<T extends IPCFactoryProps<T>>(props: T) {
[Property in MainKeys]: (
arg: Parameters<Main[Property]>[1],
...restOfArgs: any[]
) => Promise<ReturnType<Main[Property]>>
) => ReturnType<Main[Property]>
}

return invokers
Expand Down

0 comments on commit ae7f4cf

Please sign in to comment.