Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NodeTypeToType = map[string]string{ node.FloatType: "number", node.StringType: "string", node.BoolType: "boolean", node.ListType: "[]", node.StructType: "interface", }
NodeTypeToType node type to ts type
Functions ¶
func ExtractListType ¶
func ExtractListType(n node.Node, childrenTypeName []string, extractCodeMap map[string]common.ExtractCode) (typeName string)
ExtractListType get list type-name and extract common type
func ExtractStructType ¶
func ExtractStructType(n node.Node, childrenTypeMap map[string]string, extractCodeMap map[string]common.ExtractCode) (typeName string)
ExtractStructType get struct type-name and extract common type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.