Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTSContent ¶ added in v0.0.50
GenerateTSContent generates TypeScript content from the given options
func GenerateTSToFile ¶ added in v0.0.50
GenerateTSToFile generates a TypeScript file from the provided Opts.
Types ¶
type ArbitraryProperty ¶ added in v0.0.50
Anything you'd like to add to a TypeScript type object, other than the phantom types. Value must be JSON-serializable.
type Item ¶ added in v0.0.50
type Item struct { ArbitraryProperties []ArbitraryProperty PhantomTypes []PhantomType }
Item represents a TypeScript object type with arbitrary properties and phantom types. It will be added to a constant array in the generated TypeScript file with the name assigned to ItemsArrayVarName in Opts.
type PhantomType ¶ added in v0.0.50
Click to show internal directories.
Click to hide internal directories.