ts

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decls

func Decls(dir, typename, prefix, outfile string) (fab.Target, error)

Decls uses tsdecls.Write to write TypeScript type declarations to `outfile` based on the Go `typename` found in the package in `dir`.

A Decls target may be specified in YAML using the tag !ts.Decls, which introduces a mapping whose fields are:

  • Dir: the directory containing a Go package
  • Type: the Go type to examine for producing TypeScript declarations
  • Prefix: the path prefix for the generated POST URL
  • Out: the output file

Types

This section is empty.

Jump to

Keyboard shortcuts

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