mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-06 13:14:25 +08:00
Fix types for SPF_BUILDER (#2487)
Co-authored-by: str4d <4993799+str4d@users.noreply.github.com> Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
1d9646d4ff
commit
38b0be5d3f
3 changed files with 1071 additions and 1066 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/text/cases"
|
||||
|
@ -187,6 +188,10 @@ func generateFunctionTypes() (string, error) {
|
|||
}
|
||||
}
|
||||
|
||||
sort.Slice(funcs, func(i, j int) bool {
|
||||
return funcs[i].Name < funcs[j].Name
|
||||
})
|
||||
|
||||
content := ""
|
||||
for _, f := range funcs {
|
||||
content += f.String()
|
||||
|
|
2128
commands/types/dnscontrol.d.ts
vendored
2128
commands/types/dnscontrol.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -16,8 +16,8 @@ parameter_types:
|
|||
overhead1: string?
|
||||
raw: string?
|
||||
ttl: Duration?
|
||||
txtMaxSize: string[]
|
||||
parts: number?
|
||||
txtMaxSize: number?
|
||||
parts: string[]
|
||||
flatten: string[]?
|
||||
---
|
||||
|
Loading…
Add table
Reference in a new issue