This commit is contained in:
Dante
2026-05-21 23:40:20 -07:00
parent 3e2915dff7
commit 877a69d844
5737 changed files with 29796 additions and 1589684 deletions

View File

@ -32,7 +32,7 @@ import js.Error;
/**
Enumeration of possible Int `options` values for `Dns.lookup`.
**/
@:enum abstract DnsAddressFamily(Int) from Int to Int {
enum abstract DnsAddressFamily(Int) from Int to Int {
var IPv4 = 4;
var IPv6 = 6;
}
@ -63,7 +63,7 @@ typedef DnsLookupOptions = {
/**
Enumeration of possible `rrtype` value for `Dns.resolve`.
**/
@:enum abstract DnsRrtype(String) from String to String {
enum abstract DnsRrtype(String) from String to String {
/**
IPV4 addresses, default
**/
@ -133,7 +133,7 @@ extern class DnsError extends Error {
Each DNS query can return one of the following error codes
**/
@:jsRequire("dns")
@:enum extern abstract DnsErrorCode(String) {
extern enum abstract DnsErrorCode(String) {
/**
DNS server returned answer with no data.
**/
@ -255,10 +255,12 @@ extern class DnsError extends Error {
var CANCELLED;
}
typedef DnsLookupCallbackSingle = #if (haxe_ver >= 4) (err : DnsError, address : String, family : DnsAddressFamily) -> Void; #else DnsError->String->
DnsAddressFamily->Void #end
typedef DnsLookupCallbackAll = #if (haxe_ver >= 4) (err : DnsError, addresses : Array<DnsLookupCallbackAllEntry>) -> Void; #else DnsError->
Array<DnsLookupCallbackAllEntry>->Void; #end
typedef DnsLookupCallbackSingle = #if (haxe_ver >= 4) (err:DnsError, address:String,
family:DnsAddressFamily) -> Void; #else DnsError->String->DnsAddressFamily->Void #end
typedef DnsLookupCallbackAll = #if (haxe_ver >= 4) (err:DnsError,
addresses:Array<DnsLookupCallbackAllEntry>) -> Void; #else DnsError->Array<DnsLookupCallbackAllEntry>->Void; #end
typedef DnsLookupCallbackAllEntry = {address:String, family:DnsAddressFamily};
/**