Documentation
¶
Index ¶
- Variables
- func GenerateExtraTypes(tsTypesMap map[reflect.Type]string)
- func GenerateMethodBody(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta) string
- func GenerateMethodSignature(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta, ...) string
- func GenerateRpcClientApiMethod(methodDecl *rpc.RpcMethodDecl, tsTypesMap map[reflect.Type]string) string
- func GenerateRpcServerTypes(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 TypeToTSType(t reflect.Type, tsTypesMap map[reflect.Type]string) (string, []reflect.Type)
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtraTypes = []any{ map[string]any{}, rpc.RpcMessage{}, rpctypes.ServerCommandMeta{}, rpctypes.EventCommonFields{}, }
add extra types to generate here
View Source
var TypeUnions = []tsgenmeta.TypeUnionMeta{}
add extra type unions to generate here
Functions ¶
func GenerateExtraTypes ¶
func GenerateMethodBody ¶
func GenerateMethodSignature ¶
func GenerateTSTypeUnion ¶
func GenerateTSTypeUnion(unionMeta tsgenmeta.TypeUnionMeta, tsTypeMap map[reflect.Type]string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.