Documentation ¶ Index ¶ func GenerateTypeScript(opts Opts) error type AdHocType type Opts type Procedure type RouteDef type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GenerateTypeScript ¶ added in v0.0.14 func GenerateTypeScript(opts Opts) error Types ¶ type AdHocType ¶ added in v0.0.36 type AdHocType struct { // Instance of the struct to generate TypeScript for Struct any // Name is required only if struct is anonymous, otherwise optional override Name string } type Opts ¶ type Opts struct { OutDest string RouteDefs []RouteDef AdHocTypes []AdHocType } type Procedure ¶ type Procedure string type RouteDef ¶ type RouteDef struct { Key string Type Type Input any Output any } type Type ¶ type Type string const ( TypeQuery Type = "query" TypeMutation Type = "mutation" ) Source Files ¶ View all Source files rpc.go Click to show internal directories. Click to hide internal directories.