tsc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, config Config) error

Generate transpiles TS into JS by given TS config.

Types

type CompilerOptions

type CompilerOptions struct {
	BaseURL          string   `json:"baseUrl"`
	ModuleResolution string   `json:"moduleResolution"`
	Target           string   `json:"target"`
	Module           string   `json:"module"`
	TypeRoots        []string `json:"typeRoots"`
	Declaration      bool     `json:"declaration"`
	SkipLibCheck     bool     `json:"skipLibCheck"`
}

CompilerOptions section of tsconfig.json.

type Config

type Config struct {
	Include         []string        `json:"include"`
	CompilerOptions CompilerOptions `json:"compilerOptions"`
}

Config represents tsconfig.json.

Jump to

Keyboard shortcuts

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