generator

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Overview

Package generator is a generator for TypeScript interfaces

Package generator is TypeScript generator from AST

Package generator is TypeScript generator from AST

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	BasePackage     string
	CustomGenerator func(t tstypes.Type) (generated string, union bool)
	// contains filtered or unexported fields
}

Generator is a generator for TypeScript interfaces

func NewGenerator

func NewGenerator(types map[string]tstypes.Type) *Generator

NewGenerator returns a new Generator

func (*Generator) Generate

func (g *Generator) Generate() string

Generate returns generated TypeScript code

Jump to

Keyboard shortcuts

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