*make getSupportedTlds an overloaded method

This commit is contained in:
Derrick Hammer 2023-02-19 20:00:43 -05:00
parent 0fa39b7a6b
commit 6a8c6b9535
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,9 @@ export interface ResolverModule extends ResolverModuleConstructor {
bypassCache: boolean
): Promise<DNSResult>;
getSupportedTlds(): string[] | Promise<string[]>;
getSupportedTlds(): string[];
getSupportedTlds(): Promise<string[]>;
getSupportedTlds(): any;
}
// ts-ignore
@ -40,7 +42,9 @@ export abstract class AbstractResolverModule {
bypassCache: boolean
): Promise<DNSResult>;
getSupportedTlds(): string[] | Promise<string[]> {
getSupportedTlds(): string[];
getSupportedTlds(): Promise<string[]>;
getSupportedTlds(): any {
return [];
}