1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-13 16:31:59 +02:00

excluded unnecessary types to reduce the size of the generated declarations file

This commit is contained in:
Gani Georgiev 2023-07-26 10:45:06 +03:00
parent 1563855251
commit f4a6d8af49
2 changed files with 2974 additions and 10764 deletions

File diff suppressed because it is too large Load Diff

View File

@ -922,6 +922,23 @@ func main() {
MethodNameFormatter: func(s string) string {
return mapper.MethodName(nil, reflect.Method{Name: s})
},
TypeMappings: map[string]string{
"crypto.*": "any",
"acme.*": "any",
"autocert.*": "any",
"driver.*": "any",
"reflect.*": "any",
"fmt.*": "any",
"rand.*": "any",
"tls.*": "any",
"asn1.*": "any",
"pkix.*": "any",
"x509.*": "any",
"pflag.*": "any",
"flag.*": "any",
"log.*": "any",
"http.Client": "any",
},
Indent: " ", // use only a single space to reduce slight the size
WithPackageFunctions: true,
Heading: declarations,