NOTE: Have a general question? You'll get a better response on the dnscontrol-discuss email list!
Describe the bug
The documentation for TXT states that "The contents is either a single or multiple strings. To specify multiple strings, specify them as an array." The example also already includes the example: TXT("multiple", ["one", "two", "three"]), // Multiple strings.
However, the generated TypeScript file declares the function TXT to only accept a string type.
declare function TXT(name: string, contents: string, ...modifiers: RecordModifier[]): DomainModifier;
To Reproduce
Steps to reproduce the behavior:
- Run
dnscontrol write-types.
- See
contents parameter to be only of type string.
Expected behavior
contents parameter for TXT should also accept string[], similar to LUA.
DNS Provider
Additional context
Add any other context about the problem here.
NOTE: Have a general question? You'll get a better response on the dnscontrol-discuss email list!
Describe the bug
The documentation for TXT states that "The contents is either a single or multiple strings. To specify multiple strings, specify them as an array." The example also already includes the example:
TXT("multiple", ["one", "two", "three"]), // Multiple strings.However, the generated TypeScript file declares the function
TXTto only accept a string type.To Reproduce
Steps to reproduce the behavior:
dnscontrol write-types.contentsparameter to be only of typestring.Expected behavior
contentsparameter forTXTshould also acceptstring[], similar toLUA.DNS Provider
Additional context
Add any other context about the problem here.