ts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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