typescript

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package typescript generates TypeScript declarations of JSON wire types from a resolved model: interfaces and type aliases, with no runtime code. The mapping is in docs/design/schema-backends.md.

Index

Constants

View Source
const Name = "typescript"

Name names this backend in a target block and as tdl-gen-typescript.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

Backend implements plugin.Backend.

func (Backend) Describe

func (Backend) Describe() plugin.Description

func (Backend) Generate

func (Backend) Generate(_ context.Context, req *plugin.Request) (*plugin.Response, error)

Generate returns one .ts file holding the model's declarations.

Jump to

Keyboard shortcuts

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