Package

purescript-ohyes

Repository
justinwoo/purescript-ohyes
License
MIT
Uploaded by
justinwoo

Build Status

A library for generating Typescript types that can be used transparently from Purescript.

This library also provides ways for working with typical union type forms of records with a discriminant field by providing a VariantRecord structure that generates types in the following form:

export type VariantRecordTest =
  | { tag: "a", content: string }
  | { tag: "b", content: number }
  | { tag: "c", content: boolean };