Skip to content

Commit

Permalink
Adds type for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cimigree committed Jan 8, 2025
1 parent 10a4083 commit a261b39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/src/components/InviteListener.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { ClientApiProvider } from '@comapeo/core-react'
import type { invite as Invite, MapeoClientApi } from '@comapeo/ipc'
import type { Invite } from '@comapeo/core/dist/invite-api'
import { createMapeoClient } from '@comapeo/ipc'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import {
RouterProvider,
Expand All @@ -17,6 +18,8 @@ type InviteEventHandler = (invite: Invite) => void

let inviteReceivedHandler: ((invite: InviteEventHandler) => void) | undefined

export type MapeoClientApi = ReturnType<typeof createMapeoClient>

const mockInvite = {
addListener: vi.fn(
(event: string, handler: (invite: InviteEventHandler) => void) => {
Expand Down

0 comments on commit a261b39

Please sign in to comment.