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:
Jed Fox 2023-08-15 14:45:31 -07:00 committed by GitHub
parent 1d9646d4ff
commit 38b0be5d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1071 additions and 1066 deletions

View file

@ -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()

File diff suppressed because it is too large Load diff

View file

@ -16,8 +16,8 @@ parameter_types:
overhead1: string?
raw: string?
ttl: Duration?
txtMaxSize: string[]
parts: number?
txtMaxSize: number?
parts: string[]
flatten: string[]?
---