Expand description
Typescript code generators.
§What’s Here
For a given coda, the following code will be generated:
-
A
class
for each data type. -
A
type
for the coda, which is a union of the classes generated for each data type. -
A
const object
for the coda, which exposes functions for creating instances of each data type, and a utility for matching on each data type. -
An
interface
for the parameter to the matching utility function.
Codecs are not generated. They will be generated once there is a native Typescript library for encoding and decoding coda-encoded data.
Functions§
- generate_
types - Generates the Typescript types for
coda
.