typescript

package
v0.0.0-...-2d52d2e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateReflectTypeString

func TranslateReflectTypeString(reflectTypeString string) string

TranslateReflectTypeString does what is says it does

Types

type Field

type Field struct {
	Name     string
	Type     string
	Optional bool
	Null     bool
}

Field represents a TypeScript Interface field

func (Field) String

func (f Field) String() string

type Interface

type Interface struct {
	Name   string
	Fields []Field
}

Interface represents a TypeScript Interface

func Generate

func Generate(goStructs []interface{}) []Interface

Generate a list of TypeScript Interfaces

func (Interface) String

func (i Interface) String() string

Jump to

Keyboard shortcuts

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