mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00: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:
@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"golang.org/x/text/cases"
|
"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 := ""
|
content := ""
|
||||||
for _, f := range funcs {
|
for _, f := range funcs {
|
||||||
content += f.String()
|
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?
|
overhead1: string?
|
||||||
raw: string?
|
raw: string?
|
||||||
ttl: Duration?
|
ttl: Duration?
|
||||||
txtMaxSize: string[]
|
txtMaxSize: number?
|
||||||
parts: number?
|
parts: string[]
|
||||||
flatten: string[]?
|
flatten: string[]?
|
||||||
---
|
---
|
||||||
|
|
Reference in New Issue
Block a user