type alias DnsProviderOptions
Since 0.2.0

Constructor options.

A union rather than an optional port, so 'a' mode cannot be constructed without one and there is no runtime fallback to leave untested.

Definition

(DnsProviderCommon & { readonly mode: "srv"; })
| (
DnsProviderCommon
& { readonly mode: "a"; readonly port: number; }
)

Usage

import { type DnsProviderOptions } from "service-discovery-plugin/src/index.ts";