Package

purescript-ts-bridge

Repository
thought2/purescript-ts-bridge
License
MIT
Uploaded by
pacchettibotti
Published on
2023-03-25T15:28:54Z

A PureScript library for type class based TypeScript type generation (.d.ts files).

Documentation

Installation

spago install ts-bridge

Features

  • Fully customizable via a user defined type class pattern
  • Many default implementations to pick from (Primitives, Records, Variants, ...)
  • Opaque types (implemented as branded types in TypeScript)
  • Easily accessible Newtypes
  • Module resolution
  • Polymorphic types optimized for best type inference in TS
  • Tried and tested in production

Similar Projects

  • purescript-tsd-gen This project follows a different approach for type generation. It extracts TypeScript types from the PureScript CST. As such the process is more automated but less customizable.

If you find a bug or have a feature idea feel free to make a PR or file an issue.

Buy Me a Coffee at ko-fi.com

Modules
TsBridge
TsBridge.Cli
TsBridge.Core
TsBridge.DTS
TsBridge.DefaultImpls
TsBridge.Monad
TsBridge.Print
Dependencies