tsgen

package
v0.8.4-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

add extra types to generate here

add extra type unions to generate here

Functions

func GenerateMethodBody

func GenerateMethodBody(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta) string

func GenerateMethodSignature

func GenerateMethodSignature(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta, isFirst bool, tsTypesMap map[reflect.Type]string) string

func GenerateServiceClass

func GenerateServiceClass(serviceName string, serviceObj any, tsTypesMap map[reflect.Type]string) string

func GenerateServiceTypes

func GenerateServiceTypes(tsTypesMap map[reflect.Type]string) error

func GenerateTSType

func GenerateTSType(rtype reflect.Type, tsTypesMap map[reflect.Type]string)

func GenerateTSTypeUnion

func GenerateTSTypeUnion(unionMeta tsgenmeta.TypeUnionMeta, tsTypeMap map[reflect.Type]string)

func GenerateWaveObjTSType

func GenerateWaveObjTSType() string

func GenerateWaveObjTypes

func GenerateWaveObjTypes(tsTypesMap map[reflect.Type]string)

func GenerateWshClientApiMethod

func GenerateWshClientApiMethod(methodDecl *wshrpc.WshRpcMethodDecl, tsTypesMap map[reflect.Type]string) string

func GenerateWshServerTypes

func GenerateWshServerTypes(tsTypesMap map[reflect.Type]string) error

func TypeToTSType

func TypeToTSType(t reflect.Type, tsTypesMap map[reflect.Type]string) (string, []reflect.Type)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL