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'
8
8
import type { KadDHT } from '@libp2p/kad-dht'
9
9
import type { HeliaInit , HeliaLibp2p } from 'helia'
10
10
11
- export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p < Libp2p < { dht : KadDHT } > > > {
11
+ export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p > {
12
12
const helia = await createNode ( {
13
13
libp2p : {
14
14
peerDiscovery : [ ] ,
@@ -30,6 +30,5 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
30
30
}
31
31
} )
32
32
33
- // @ts -expect-error cannot derive service map type
34
33
return helia
35
34
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import type { FastifyInstance } from 'fastify'
19
19
import type { HeliaLibp2p } from 'helia'
20
20
21
21
describe ( 'delegated-routing-v1-http-api interop' , ( ) => {
22
- let network : Array < HeliaLibp2p < Libp2p < { dht : KadDHT } > > >
22
+ let network : Array < HeliaLibp2p >
23
23
let server : FastifyInstance
24
24
let client : DelegatedRoutingV1HttpApiClient
25
25
You can’t perform that action at this time.
0 commit comments