tsrender

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tsrender generates TypeScript source code from the Go-oriented intermediate representation produced by the transform package. It outputs .ts files containing interfaces, enums, enum name mappings, and (later) validation metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TSFile

func TSFile(gf transform.GoFile, registry TypeRegistry) ([]byte, error)

TSFile generates a complete TypeScript file from a GoFile intermediate representation. The returned bytes are ready to write to disk as a .pb.ts file. The registry maps Go type names to their source .pb.ts output file name, used to generate ES module import statements for cross-file references.

Types

type TypeRegistry

type TypeRegistry map[string]string

TypeRegistry maps Go type names to their source .pb.ts output file name. Used to generate ES module import statements for cross-file type references.

Jump to

Keyboard shortcuts

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