Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

betafcc/vscode-fp-ts-codegen

Repository files navigation

fp-ts Codegen

Expands haskell-syntax ADTs to typescript equivalent types definitions using gcanti/fp-ts-codegen, check the online playground.

Features

expansion at work

Extension Settings

This extension contributes the following settings:

  • fp-ts-codegen.tagName: the name of the field used as tag
  • fp-ts-codegen.foldName: the name prefix used for pattern matching functions
  • fp-ts-codegen.matcheeName: the name used for the input of pattern matching functions
  • fp-ts-codegen.handlersStyle: the pattern matching handlers can be expressed as positional arguments or a single object literal tag -> 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, either literal for pure TS or fp-ts, to use fp-ts constructs

Release Notes

1.0.0

Initial release of vscode-fp-ts-codegen.

About

Expands haskell-syntax ADTs to typescript equivalent types definitions using gcanti/fp-ts-codegen

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /