SukkaW 2ebe91189c
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Chore: minor changes
2025-02-15 22:55:29 +08:00

24 lines
560 B
TypeScript

import 'dns2';
declare module 'dns2' {
import DNS2 from 'dns2';
declare namespace DNS2 {
interface DoHClientOption {
/** @example dns.google.com */
dns: string,
/** @description whether to use HTTP or HTTPS */
http: boolean
}
export type PacketQuestion = keyof typeof Packet.TYPE;
export type DnsResolver<T = DnsResponse> = (name: string, type: PacketQuestion) => Promise<T>;
declare function DOHClient(opt: DoHClientOption): DnsResolver;
export type $DnsResponse = DnsResponse;
}
export = DNS2;
}