typescriptgenerator

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ClientGenFile = "client.gen.ts"
View Source
const DefaultEntrypointFile = "__dagger.entrypoint.ts"

DefaultEntrypointFile is the filename of the static dispatch entrypoint the runtime expects at the user's module root.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeScriptGenerator

type TypeScriptGenerator struct {
	Config generator.Config
}

func (*TypeScriptGenerator) GenerateClient added in v0.16.3

func (g *TypeScriptGenerator) GenerateClient(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)

func (*TypeScriptGenerator) GenerateEntrypoint

func (g *TypeScriptGenerator) GenerateEntrypoint(ctx context.Context) (*generator.GeneratedState, error)

GenerateEntrypoint renders the static dispatch `__dagger.entrypoint.ts` for the user's module from a previously-emitted typedef JSON. The path to that JSON, the module root, and other options come from `Config.EntrypointConfig`.

func (*TypeScriptGenerator) GenerateLibrary added in v0.18.15

func (g *TypeScriptGenerator) GenerateLibrary(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)

func (*TypeScriptGenerator) GenerateModule added in v0.16.3

func (g *TypeScriptGenerator) GenerateModule(_ context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)

Generate will generate the TypeScript SDK code and might modify the schema to reorder types in a alphanumeric fashion.

func (*TypeScriptGenerator) GenerateTypeDefs added in v0.19.3

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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