*Update types

This commit is contained in:
Derrick Hammer 2022-08-19 11:53:26 -04:00
parent 3b3e70af21
commit 42712a51d7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,10 @@
// @ts-nocheck
import type { DNSResult, ResolverOptions } from "./types.js";
import { getTld } from "./util.js";
import { ResolverRegistry } from "@lumeweb/resolver";
export interface ResolverModule {
constructor(resolver: ResolverRegistry): void;
new (resolver: ResolverRegistry): any;
resolve(
domain: string,
@ -14,11 +15,13 @@ export interface ResolverModule {
getSupportedTlds(): string[];
}
// ts-ignore
export abstract class AbstractResolverModule implements ResolverModule {
protected resolver: ResolverRegistry;
constructor(resolver: ResolverRegistry) {
this.resolver = resolver;
return this;
}
abstract resolve(

View File

@ -15,7 +15,8 @@
"declarationMap": true,
"declarationDir": "dist",
"emitDeclarationOnly": false,
"allowJs": true
"allowJs": true,
"noImplicitAny": false
},
"include": [
"src"