From ee4b80b4ce91ecff84c00798f7dc058a29e5bde9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 20 Aug 2022 02:48:48 -0400 Subject: [PATCH] *add ResolverModuleConstructor interface --- src/resolverModule.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/resolverModule.ts b/src/resolverModule.ts index 1895e4e..bbd773b 100644 --- a/src/resolverModule.ts +++ b/src/resolverModule.ts @@ -17,9 +17,11 @@ declare class ResolverRegistry { clear(): void; } -export interface ResolverModule { - constructor(resolver: ResolverRegistry); +export interface ResolverModuleConstructor { + new (resolver: ResolverRegistry); +} +export interface ResolverModule extends ResolverModuleConstructor { resolve( domain: string, options: ResolverOptions,