tsgen

package
v0.8.9-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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