Documentation
¶
Overview ¶
Package sdk generates the client SDKs from a project's operations. The TypeScript client, imported as @lidza/client, is written to .lidza/client and regenerated whenever the Go types change.
Index ¶
Constants ¶
const ClientDir = ".lidza/client"
ClientDir is where the TypeScript client lives, relative to the project root. The template aliases @lidza/client to ClientDir/index.ts.
Variables ¶
This section is empty.
Functions ¶
func Dart ¶
Dart renders the Dart client package (`lidza_client`, on package:http): types as classes with fromJson and toJson, enums with their wire values, and one method per operation on LidzaClient. Files are keyed by path inside the package directory.
func TypeScript ¶
TypeScript renders the client as files keyed by name: types.ts (the component schemas as interfaces and unions), client.ts (one function per operation) and index.ts.
Types ¶
This section is empty.