*make getSupportedTlds an overloaded method
This commit is contained in:
parent
0fa39b7a6b
commit
6a8c6b9535
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue