Render flanders.types types as TypeScript types.
See: https://github.com/microsoft/TypeScript/blob/f30e8a284ac479a96ac660c94084ce5170543cc4/doc/spec.md#A
Render flanders.types types as TypeScript types. See: https://github.com/microsoft/TypeScript/blob/f30e8a284ac479a96ac660c94084ce5170543cc4/doc/spec.md#A
A set of keywords used by the type-script-declaration
and
type-script-declarations
functions.
Flags may be one of the following
:warn-on-duplicate-entries
causes a warning to be printed
for each key in a flanders.types.MapType
which has more than
one disctinct associated value type. Note, this is not the same
as a single key haveing a value type of
flanders.types.EitherType
.
:warn-on-duplicate-names
when rendering multiple type
declarations, causes a warning to be printed for each group of
Flanders typess which have the same :name
.
A set of keywords used by the `type-script-declaration` and `type-script-declarations` functions. Flags may be one of the following * `:warn-on-duplicate-entries` causes a warning to be printed for each key in a `flanders.types.MapType` which has more than one disctinct associated value type. Note, this is not the same as a single key haveing a value type of `flanders.types.EitherType`. * `:warn-on-duplicate-names` when rendering multiple type declarations, causes a warning to be printed for each group of Flanders typess which have the same `:name`.
(type-script-declaration x)
Attempt to render x
as a TypeScript declaration.
Attempt to render `x` as a TypeScript declaration.
(type-script-declarations xs)
(type-script-declarations xs {{:as flags} :flags})
(type-script-type x)
Render x
as a TypeScript type e.g. one of
* UnionOrIntersectionOrPrimaryType,
* FunctionType, or * ConstructorType
as defined in the TypeScript grammar.
Render `x` as a TypeScript type e.g. one of * UnionOrIntersectionOrPrimaryType, * FunctionType, or * ConstructorType as defined in the TypeScript grammar.
(type-script-type-name x)
Attempt to return the TypeScript type name of x
. Returns nil
if
the type name cannot be determined.
Attempt to return the TypeScript type name of `x`. Returns `nil` if the type name cannot be determined.
(type-script-union xs)
Render xs
as a TypeScript UnionType or "any".
Render `xs` as a TypeScript UnionType or "any".
(-type-script-enum-declaration this)
(-type-script-interface-declaration this)
(-type-script-property-names this)
(-type-script-property-signatures this)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close