Versions in this module Expand all Collapse all v0 v0.0.0 Apr 4, 2023 Changes in this version + type EnumType struct + Type reflect.Type + type StructType struct + FieldOptions map[reflect.Type]TypeOptions + Type reflect.Type + func NewStruct(i interface{}) *StructType + func (st *StructType) WithFieldOpts(i interface{}, opts TypeOptions) *StructType + type TSNamer interface + TSName func() string + type TypeOptions struct + TSDoc string + TSTransform string + TSType string + type TypeScriptify struct + BackupDir string + CreateConstructor bool + CreateFromMethod bool + CreateInterface bool + DontExport bool + Indent string + Prefix string + Suffix string + func New() *TypeScriptify + func (t *TypeScriptify) Add(obj interface{}) *TypeScriptify + func (t *TypeScriptify) AddEnum(values interface{}) *TypeScriptify + func (t *TypeScriptify) AddEnumValues(typeOf reflect.Type, values interface{}) *TypeScriptify + func (t *TypeScriptify) AddImport(i string) + func (t *TypeScriptify) AddType(typeOf reflect.Type) *TypeScriptify + func (t *TypeScriptify) Convert(customCode map[string]string) (string, error) + func (t *TypeScriptify) ManageType(fld interface{}, opts TypeOptions) *TypeScriptify + func (t *TypeScriptify) WithBackupDir(b string) *TypeScriptify + func (t *TypeScriptify) WithConstructor(b bool) *TypeScriptify + func (t *TypeScriptify) WithCreateFromMethod(b bool) *TypeScriptify + func (t *TypeScriptify) WithIndent(i string) *TypeScriptify + func (t *TypeScriptify) WithInterface(b bool) *TypeScriptify + func (t *TypeScriptify) WithPrefix(p string) *TypeScriptify + func (t *TypeScriptify) WithSuffix(s string) *TypeScriptify + func (t TypeScriptify) ConvertToFile(fileName string) error