Expands haskell-syntax ADTs to typescript equivalent types definitions using gcanti/fp-ts-codegen, check the online playground.
This extension contributes the following settings:
fp-ts-codegen.tagName
: the name of the field used as tagfp-ts-codegen.foldName
: the name prefix used for pattern matching functionsfp-ts-codegen.matcheeName
: the name used for the input of pattern matching functionsfp-ts-codegen.handlersStyle
: the pattern matching handlers can be expressed as positional arguments or a single object literaltag -> handler
fp-ts-codegen.handlersName
: the name used for the handler if handlersStyle is "record"fp-ts-codegen.encoding
: the encoding to generate the types, eitherliteral
for pure TS orfp-ts
, to use fp-ts constructs
Initial release of vscode-fp-ts-codegen.
- Use gcanti/fp-ts-codegen for expanding ADTs