@dnscmp/types
v0.0.3
Published
Shared TypeScript types for dnscmp packages.
Readme
@dnscmp/types
Shared TypeScript types for the dnscmp packages. No runtime code.
Types
DnsProvider
Input to @dnscmp/core. Represents a named DNS provider with one or more resolvers (identified by IP) to test.
interface DnsProvider {
name: string;
resolvers: readonly string[];
}DnsResult
Output from @dnscmp/core. Contains the provider name, the fastest resolver IP, and the average query time across tested domains.
interface DnsResult {
name: string;
resolver: string;
avg: number | null; // null if the provider failed to respond
}