diff --git a/dist/resolverModule.d.ts b/dist/resolverModule.d.ts index 71c056c..8a14291 100644 --- a/dist/resolverModule.d.ts +++ b/dist/resolverModule.d.ts @@ -1,7 +1,7 @@ import type { DNSResult, ResolverOptions } from "./types.js"; import { ResolverRegistry } from "@lumeweb/resolver"; export interface ResolverModule { - constructor(resolver: ResolverRegistry): void; + new (resolver: ResolverRegistry): any; resolve( domain: string, options: ResolverOptions, @@ -9,7 +9,7 @@ export interface ResolverModule { ): Promise; getSupportedTlds(): string[]; } -export declare abstract class AbstractResolverModule { +export declare abstract class AbstractResolverModule implements ResolverModule { protected resolver: ResolverRegistry; constructor(resolver: ResolverRegistry); abstract resolve( diff --git a/dist/resolverModule.d.ts.map b/dist/resolverModule.d.ts.map index 059cf5a..1f6239e 100644 --- a/dist/resolverModule.d.ts.map +++ b/dist/resolverModule.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE9C,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtB,gBAAgB,IAAI,MAAM,EAAE,CAAC;CAC9B;AAED,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;IAItC,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"} \ No newline at end of file +{"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,KAAK,QAAQ,EAAE,gBAAgB,GAAG,GAAG,CAAC;IAEtC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtB,gBAAgB,IAAI,MAAM,EAAE,CAAC;CAC9B;AAGD,8BAAsB,sBAAuB,YAAW,cAAc;IACpE,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;IAKtC,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"} \ No newline at end of file diff --git a/dist/resolverModule.js b/dist/resolverModule.js index 88513f5..d34100e 100644 --- a/dist/resolverModule.js +++ b/dist/resolverModule.js @@ -1,8 +1,10 @@ import { getTld } from "./util.js"; +// ts-ignore export class AbstractResolverModule { resolver; constructor(resolver) { this.resolver = resolver; + return this; } getSupportedTlds() { return [];