Skip to content

Commit 53b7481

Browse files
committed
fix: update interop tests for non-generic HeliaLibp2p type
1 parent 7eb3ea2 commit 53b7481

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/interop/test/fixtures/create-helia.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Libp2p } from '@libp2p/interface'
88
import type { KadDHT } from '@libp2p/kad-dht'
99
import type { HeliaInit, HeliaLibp2p } from 'helia'
1010

11-
export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>> {
11+
export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp2p> {
1212
const helia = await createNode({
1313
libp2p: {
1414
peerDiscovery: [],
@@ -30,6 +30,5 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
3030
}
3131
})
3232

33-
// @ts-expect-error cannot derive service map type
3433
return helia
3534
}

packages/interop/test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { FastifyInstance } from 'fastify'
1919
import type { HeliaLibp2p } from 'helia'
2020

2121
describe('delegated-routing-v1-http-api interop', () => {
22-
let network: Array<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>>
22+
let network: Array<HeliaLibp2p>
2323
let server: FastifyInstance
2424
let client: DelegatedRoutingV1HttpApiClient
2525

0 commit comments

Comments
 (0)