File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,9 @@ import { ping } from '@libp2p/ping'
4
4
import { createHelia as createNode } from 'helia'
5
5
import { ipnsSelector } from 'ipns/selector'
6
6
import { ipnsValidator } from 'ipns/validator'
7
- import type { Libp2p } from '@libp2p/interface'
8
- import type { KadDHT } from '@libp2p/kad-dht'
9
7
import type { HeliaInit , HeliaLibp2p } from 'helia'
10
8
11
- export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p < Libp2p < { dht : KadDHT } > > > {
9
+ export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p > {
12
10
const helia = await createNode ( {
13
11
libp2p : {
14
12
peerDiscovery : [ ] ,
@@ -30,6 +28,5 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
30
28
}
31
29
} )
32
30
33
- // @ts -expect-error cannot derive service map type
34
31
return helia
35
32
}
Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ import * as raw from 'multiformats/codecs/raw'
13
13
import { sha256 } from 'multiformats/hashes/sha2'
14
14
import { createHelia } from './fixtures/create-helia.js'
15
15
import type { DelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
16
- import type { Libp2p } from '@libp2p/interface'
17
- import type { KadDHT } from '@libp2p/kad-dht'
18
16
import type { FastifyInstance } from 'fastify'
19
17
import type { HeliaLibp2p } from 'helia'
20
18
21
19
describe ( 'delegated-routing-v1-http-api interop' , ( ) => {
22
- let network : Array < HeliaLibp2p < Libp2p < { dht : KadDHT } > > >
20
+ let network : Array < HeliaLibp2p >
23
21
let server : FastifyInstance
24
22
let client : DelegatedRoutingV1HttpApiClient
25
23
You can’t perform that action at this time.
0 commit comments