*add ResolverModuleConstructor interface

This commit is contained in:
Derrick Hammer 2022-08-20 02:48:48 -04:00
parent 234074fb8f
commit ee4b80b4ce
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -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,