Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidManifest = errors.New("invalid manifest")
)
Functions ¶
func GenerateTypescriptIndex ¶
func GenerateTypescriptIndex(packageSchema *scalefile.Schema, functionInfo *FunctionInfo) ([]byte, error)
func GenerateTypescriptPackageJSON ¶
func GenerateTypescriptPackageJSON(signatureInfo *SignatureInfo) ([]byte, error)
Types ¶
type FunctionInfo ¶ added in v0.4.6
type FunctionInfo struct {
// PackageName is the name of the function package
PackageName string
// ImportPath is the import path for the function, always a path on disk
ImportPath string
}
FunctionInfo is the import information for a Function
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateTypescriptIndex ¶
func (*Generator) GenerateTypescriptPackageJSON ¶
func (g *Generator) GenerateTypescriptPackageJSON(signatureInfo *SignatureInfo) ([]byte, error)
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
func ParseManifest ¶
func (*Manifest) AddDependency ¶
func (*Manifest) GetDependency ¶
func (*Manifest) HasDependency ¶
func (*Manifest) RemoveDependency ¶
type PackageJSON ¶
type PackageJSON struct {
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description,omitempty"`
License string `json:"license,omitempty"`
Files []string `json:"files,omitempty"`
Main string `json:"main,omitempty"`
Browser string `json:"browser,omitempty"`
Dependencies map[string]string `json:"dependencies,omitempty"`
DevDependencies map[string]string `json:"devDependencies,omitempty"`
// contains filtered or unexported fields
}
type SignatureInfo ¶ added in v0.4.6
type SignatureInfo struct {
// Local specifies whether the signature is a locally importable signature
Local bool
// ImportPath is the import path for the signature, if the signature is local this will be a path on disk
ImportPath string
}
SignatureInfo is the import information for a Signature
Click to show internal directories.
Click to hide internal directories.