@unstoppabledomains/resolution
Version:
Domain Resolution for blockchain domains
15 lines (14 loc) • 466 B
TypeScript
import { CryptoRecords, DnsRecord } from '../types/publicTypes';
export default class DnsUtils {
static readonly DefaultTtl: number;
toList(record: CryptoRecords): DnsRecord[];
toCrypto(records: DnsRecord[]): CryptoRecords;
private protectFromCorruptRecord;
private getJsonArray;
private getJsonNumber;
private getAllDnsTypes;
private constructDnsRecords;
private parseTtl;
private parseIfNumber;
private isStringArray;
}