From 7a1a2d21508fafff9179c1177440af150fff9b67 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 19 Aug 2022 15:49:30 -0400 Subject: [PATCH] *import only the type RpcNetwork --- src/resolverModule.ts | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/resolverModule.ts b/src/resolverModule.ts index 069074d..1895e4e 100644 --- a/src/resolverModule.ts +++ b/src/resolverModule.ts @@ -1,23 +1,22 @@ import type { DNSResult, ResolverOptions } from "./types.js"; import { getTld } from "./util.js"; -import {RpcNetwork} from "@lumeweb/dht-rpc-client"; +import type { RpcNetwork } from "@lumeweb/dht-rpc-client"; declare class ResolverRegistry { - private _resolvers; - private _rpcNetwork; - constructor(network?: RpcNetwork); - get resolvers(): Set; - get rpcNetwork(): RpcNetwork; - resolve( - domain: string, - options?: ResolverOptions, - bypassCache?: boolean - ): Promise; - register(resolver: ResolverModule): void; - clear(): void; + private _resolvers; + private _rpcNetwork; + constructor(network?: RpcNetwork); + get resolvers(): Set; + get rpcNetwork(): RpcNetwork; + resolve( + domain: string, + options?: ResolverOptions, + bypassCache?: boolean + ): Promise; + register(resolver: ResolverModule): void; + clear(): void; } - export interface ResolverModule { constructor(resolver: ResolverRegistry);