From 6a8c6b9535683598ac87a9e31b7ad8b4b9f2d15d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 19 Feb 2023 20:00:43 -0500 Subject: [PATCH] *make getSupportedTlds an overloaded method --- src/resolverModule.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/resolverModule.ts b/src/resolverModule.ts index 506d0c7..d385d02 100644 --- a/src/resolverModule.ts +++ b/src/resolverModule.ts @@ -23,7 +23,9 @@ export interface ResolverModule extends ResolverModuleConstructor { bypassCache: boolean ): Promise; - getSupportedTlds(): string[] | Promise; + getSupportedTlds(): string[]; + getSupportedTlds(): Promise; + getSupportedTlds(): any; } // ts-ignore @@ -40,7 +42,9 @@ export abstract class AbstractResolverModule { bypassCache: boolean ): Promise; - getSupportedTlds(): string[] | Promise { + getSupportedTlds(): string[]; + getSupportedTlds(): Promise; + getSupportedTlds(): any { return []; }