Package

purescript-ohyes

Repository
justinwoo/purescript-ohyes
License
MIT
Uploaded by
justinwoo
Published on
2017-08-27T11:18:56Z

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 };