MCPcopy
hub / github.com/wailsapp/wails / TypeScriptify

Struct TypeScriptify

v2/internal/typescriptify/typescriptify.go:98–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98type TypeScriptify struct {
99 Prefix string
100 Suffix string
101 Indent string
102 CreateFromMethod bool
103 CreateConstructor bool
104 BackupDir string // If empty no backup
105 DontExport bool
106 CreateInterface bool
107 customImports []string
108
109 structTypes []StructType
110 enumTypes []EnumType
111 enums map[reflect.Type][]enumElement
112 kinds map[reflect.Kind]string
113
114 fieldTypeOptions map[reflect.Type]TypeOptions
115
116 // throwaway, used when converting
117 alreadyConverted map[string]bool
118
119 Namespace string
120 KnownStructs *slicer.StringSlicer
121 KnownEnums *slicer.StringSlicer
122}
123
124func New() *TypeScriptify {
125 result := new(TypeScriptify)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected