保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/@types/node/dns/promises.d.ts
@@ -119,7 +119,7 @@
     *
     * <omitted>
     *
     * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
     * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
     * @since v10.6.0
     * @param hostname Host name to resolve.
     * @param [rrtype='A'] Resource record type.
@@ -189,7 +189,7 @@
     * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
     * the `Promise` is resolved with an array of objects containing available
     * certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
     * @since v15.0.0
     * @since v15.0.0, v14.17.0
     */
    function resolveCaa(hostname: string): Promise<CaaRecord[]>;
    /**
@@ -300,7 +300,7 @@
     * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
     * array of host names.
     *
     * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
     * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
     * @since v10.6.0
     */
    function reverse(ip: string): Promise<string[]>;
@@ -331,6 +331,19 @@
     * @param servers array of `RFC 5952` formatted addresses
     */
    function setServers(servers: ReadonlyArray<string>): void;
    /**
     * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
     *
     * * `ipv4first`: sets default `verbatim` `false`.
     * * `verbatim`: sets default `verbatim` `true`.
     *
     * The default is `ipv4first` and `dnsPromises.setDefaultResultOrder()` have
     * higher priority than `--dns-result-order`. When using `worker threads`,`dnsPromises.setDefaultResultOrder()` from the main thread won't affect the
     * default dns orders in workers.
     * @since v16.4.0, v14.18.0
     * @param order must be `'ipv4first'` or `'verbatim'`.
     */
    function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
    class Resolver {
        constructor(options?: ResolverOptions);
        cancel(): void;