Documentation
¶
Overview ¶
Package jsonschema generates TypeScript schema declarations from JSON Schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Declarations ¶
Declarations renders the types the configured schemas describe as one TypeScript declaration file for the configured module.
Types ¶
type Config ¶
type Config struct {
// Module names the declared module, which scripts import the types from.
Module string `required:"" placeholder:"NAME" help:"Name of the TypeScript module to declare the types in."`
// Schemas are JSON Schema files whose titled roots and definitions become types.
Schemas []string `` /* 142-byte string literal not displayed */
}
Config selects the JSON Schema files declared as one TypeScript module.
Click to show internal directories.
Click to hide internal directories.