diff --git a/commands/types/dnscontrol.d.ts b/commands/types/dnscontrol.d.ts index f81a2f5238..7ebb37f1b6 100644 --- a/commands/types/dnscontrol.d.ts +++ b/commands/types/dnscontrol.d.ts @@ -4087,7 +4087,7 @@ declare function TTL(ttl: Duration): RecordModifier; * * @see https://docs.dnscontrol.org/language-reference/domain-modifiers/txt */ -declare function TXT(name: string, contents: string, ...modifiers: RecordModifier[]): DomainModifier; +declare function TXT(name: string, contents: string | string[], ...modifiers: RecordModifier[]): DomainModifier; /** * This is provider specific type of record and not a DNS standard. It may behave differently for each provider that handles it. diff --git a/documentation/language-reference/domain-modifiers/TXT.md b/documentation/language-reference/domain-modifiers/TXT.md index 03cf7ab485..84f5ccd532 100644 --- a/documentation/language-reference/domain-modifiers/TXT.md +++ b/documentation/language-reference/domain-modifiers/TXT.md @@ -6,7 +6,7 @@ parameters: - modifiers... parameter_types: name: string - contents: string + contents: string | string[] "modifiers...": RecordModifier[] ---