Documentation
¶
Index ¶
- Constants
- type TypeScriptGenerator
- func (g *TypeScriptGenerator) GenerateClient(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
- func (g *TypeScriptGenerator) GenerateModule(_ context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
Constants ¶
View Source
const ClientGenFile = "client.gen.ts"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeScriptGenerator ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.