mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 18:48:14 +02:00
excluded unnecessary types to reduce the size of the generated declarations file
This commit is contained in:
1 parent
1563855251
commit
f4a6d8af49
2 files changed
+2974
-10764
No files matched your search
+2957
-10764
File diff suppressed because it is too large.
Load diff
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user