Skip to content

Commit b73c1a8

Browse files
authored
Fix type of createContext in createIPCHandler. (#111)
1 parent 08aae7f commit b73c1a8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/bright-hornets-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'electron-trpc': patch
3+
---
4+
5+
Fix type of `createContext` in `createIPCHandler`

packages/electron-trpc/src/main/createIPCHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const createIPCHandler = <TRouter extends AnyRouter>({
4646
router,
4747
windows = [],
4848
}: {
49-
createContext?: () => Promise<inferRouterContext<TRouter>>;
49+
createContext?: (opts: CreateContextOptions) => Promise<inferRouterContext<TRouter>>;
5050
router: TRouter;
5151
windows?: Electron.BrowserWindow[];
5252
}) => {

0 commit comments

Comments
 (0)