*Update types
This commit is contained in:
parent
3b3e70af21
commit
42712a51d7
|
@ -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(
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
"declarationMap": true,
|
||||
"declarationDir": "dist",
|
||||
"emitDeclarationOnly": false,
|
||||
"allowJs": true
|
||||
"allowJs": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
|
|
Loading…
Reference in New Issue