typescript

package
v0.0.0-...-51f0c4b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package typescript generates code for TS type definitions and http calls using the Axios library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ana *an.Analysis) []gen.Declaration

Generate generates the code for the types in `ana.Source`.

func GenerateAxios

func GenerateAxios(api []httpapi.Endpoint) string

GenerateAxios generate a TS class using Axios for calling the given http API description.

func GenerateURLs

func GenerateURLs(api []httpapi.Endpoint) string

GenerateURLs generate a TS class exposing URLs for the given http API description.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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