A PureScript library for type class based TypeScript type generation (.d.ts
files).
spago install ts-bridge
- 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
- 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.