Documentation ¶
Index ¶
- Variables
- func GenerateMethodBody(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta) string
- func GenerateMethodSignature(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta, ...) string
- func GenerateServiceClass(serviceName string, serviceObj any, tsTypesMap map[reflect.Type]string) string
- func GenerateServiceTypes(tsTypesMap map[reflect.Type]string) error
- func GenerateTSType(rtype reflect.Type, tsTypesMap map[reflect.Type]string)
- func GenerateTSTypeUnion(unionMeta tsgenmeta.TypeUnionMeta, tsTypeMap map[reflect.Type]string)
- func GenerateWaveObjTSType() string
- func GenerateWaveObjTypes(tsTypesMap map[reflect.Type]string)
- func GenerateWshClientApiMethod(methodDecl *wshrpc.WshRpcMethodDecl, tsTypesMap map[reflect.Type]string) string
- func GenerateWshServerTypes(tsTypesMap map[reflect.Type]string) error
- func TypeToTSType(t reflect.Type, tsTypesMap map[reflect.Type]string) (string, []reflect.Type)
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtraTypes = []any{ waveobj.ORef{}, (*waveobj.WaveObj)(nil), map[string]any{}, service.WebCallType{}, service.WebReturnType{}, waveobj.UIContext{}, eventbus.WSEventType{}, wps.WSFileEventData{}, waveobj.LayoutActionData{}, filestore.WaveFile{}, wconfig.FullConfigType{}, wconfig.WatcherUpdate{}, wshutil.RpcMessage{}, wshrpc.WshServerCommandMeta{}, userinput.UserInputRequest{}, vdom.Elem{}, vdom.VDomFuncType{}, vdom.VDomRefType{}, waveobj.MetaTSType{}, }
add extra types to generate here
View Source
var TypeUnions = []tsgenmeta.TypeUnionMeta{ webcmd.WSCommandTypeUnionMeta(), }
add extra type unions to generate here
Functions ¶
func GenerateMethodBody ¶
func GenerateMethodSignature ¶
func GenerateServiceClass ¶
func GenerateTSTypeUnion ¶
func GenerateTSTypeUnion(unionMeta tsgenmeta.TypeUnionMeta, tsTypeMap map[reflect.Type]string)
func GenerateWaveObjTSType ¶
func GenerateWaveObjTSType() string
func GenerateWaveObjTypes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.