mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-06 03:46:34 +08:00
BUGFIX: types fix: CAA_BUILDER accepts string[] or string for issue (#3546)
This commit is contained in:
parent
7a4c16f447
commit
d0fffaf8c2
3 changed files with 5 additions and 5 deletions
2
commands/types/dnscontrol.d.ts
vendored
2
commands/types/dnscontrol.d.ts
vendored
|
@ -469,7 +469,7 @@ declare function CAA(name: string, tag: "issue" | "issuewild" | "iodef", value:
|
||||||
*
|
*
|
||||||
* @see https://docs.dnscontrol.org/language-reference/domain-modifiers/caa_builder
|
* @see https://docs.dnscontrol.org/language-reference/domain-modifiers/caa_builder
|
||||||
*/
|
*/
|
||||||
declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critical?: boolean; issue: string[]; issue_critical?: boolean; issuewild: string[]; issuewild_critical?: boolean; ttl?: Duration }): DomainModifier;
|
declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critical?: boolean; issue: string[]|string; issue_critical?: boolean; issuewild: string[]|string; issuewild_critical?: boolean; ttl?: Duration }): DomainModifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WARNING: Cloudflare is removing this feature and replacing it with a new
|
* WARNING: Cloudflare is removing this feature and replacing it with a new
|
||||||
|
|
|
@ -14,9 +14,9 @@ parameter_types:
|
||||||
label: string?
|
label: string?
|
||||||
iodef: string
|
iodef: string
|
||||||
iodef_critical: boolean?
|
iodef_critical: boolean?
|
||||||
issue: string[]
|
issue: string[]|string
|
||||||
issue_critical: boolean?
|
issue_critical: boolean?
|
||||||
issuewild: string[]
|
issuewild: string[]|string
|
||||||
issuewild_critical: boolean?
|
issuewild_critical: boolean?
|
||||||
ttl: Duration?
|
ttl: Duration?
|
||||||
---
|
---
|
||||||
|
|
|
@ -1678,8 +1678,8 @@ function SPF_BUILDER(value) {
|
||||||
// label: The DNS label for the CAA record. (default: '@')
|
// label: The DNS label for the CAA record. (default: '@')
|
||||||
// iodef: The contact mail address. (optional)
|
// iodef: The contact mail address. (optional)
|
||||||
// iodef_critical: Boolean if sending report is required/critical. If not supported, certificate should be refused. (optional)
|
// iodef_critical: Boolean if sending report is required/critical. If not supported, certificate should be refused. (optional)
|
||||||
// issue: List of CAs which are allowed to issue certificates for the domain (creates one record for each).
|
// issue: List of CAs which are allowed to issue certificates for the domain (creates one record for each), or the string 'none'.
|
||||||
// issuewild: Allowed CAs which can issue wildcard certificates for this domain. (creates one record for each)
|
// issuewild: List of allowed CAs which can issue wildcard certificates for this domain, or the string 'none'. (creates one record for each)
|
||||||
// ttl: The time for TTL, integer or string. (default: not defined, using DefaultTTL)
|
// ttl: The time for TTL, integer or string. (default: not defined, using DefaultTTL)
|
||||||
|
|
||||||
function CAA_BUILDER(value) {
|
function CAA_BUILDER(value) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue