Documentation
¶
Overview ¶
Helper code to assist emitting correctly minimally parenthesized TypeScript type literals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeLiteral ¶
Produces a TypeScript type literal for the type, with minimally inserted parentheses.
Types ¶
type TypeAst ¶
type TypeAst interface {
// contains filtered or unexported methods
}
Supported types include type identifiers, arrays `T[]`, unions `A|B`, and maps with string keys.
func Identifier ¶
Builds a type identifier (possibly qualified such as "my.module.MyType") or a primitive such as "boolean".
Click to show internal directories.
Click to hide internal directories.