File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type { Libp2p } from '@libp2p/interface'
88import type { KadDHT } from '@libp2p/kad-dht'
99import 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}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import type { FastifyInstance } from 'fastify'
1919import type { HeliaLibp2p } from 'helia'
2020
2121describe ( '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
You can’t perform that action at this time.
0 commit comments