typescript

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 3 Imported by: 0

README

typescript

TypeScript client code generator stub.

Responsibility

Placeholder for future TypeScript code generation. Currently returns ErrNotImplemented when invoked.

Architecture Role

Registered in the generator registry to provide helpful error messages when users attempt --runtime typescript. This allows the CLI to recognize the runtime name without crashing.

Planned Output

When implemented, will produce:

  • types.ts - Type constants and TypeScript interfaces
  • schema.ts - Factory functions for creating objects
  • index.ts - Re-exports for clean imports

Documentation

Overview

Package typescript implements a stub TypeScript client code generator.

This generator is not yet implemented. It registers with the generator registry to provide helpful error messages when users attempt to generate TypeScript code.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("typescript generator not yet implemented")

ErrNotImplemented is returned when attempting to generate TypeScript code.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator implements clientgen.Generator for TypeScript. Currently a stub that returns "not implemented" errors.

func (*Generator) DefaultConfig

func (g *Generator) DefaultConfig() *clientgen.Config

DefaultConfig returns default configuration for TypeScript code generation.

func (*Generator) Generate

func (g *Generator) Generate(_ []schema.TypeDefinition, _ *clientgen.Config) (map[string][]byte, error)

Generate returns an error as TypeScript generation is not yet implemented.

Future implementation will produce:

  • types.ts: Type constants and TypeScript types
  • schema.ts: Factory functions for creating objects
  • index.ts: Re-exports for clean imports

func (*Generator) Name

func (g *Generator) Name() string

Name returns "typescript" as the runtime identifier.

Jump to

Keyboard shortcuts

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