Module

OhYes

Package
purescript-ohyes
Repository
justinwoo/purescript-ohyes

#toTS Source

toTS :: forall a. HasTSRep a => a -> a

#generateTS Source

generateTS :: forall a. HasTSRep a => String -> Proxy a -> String

Generate Typescript type signatures for a given type, supplying a name to use as the type name

#HasTSRep Source

class (HasJSRep a) <= HasTSRep a  where

Our main type class for types that can be represented in Typescript types without conversion. You may want to using newtype instance deriving for this class for your newtypes, but any other types should be tested for correctness.

Members

Instances

#HasTSRepFields Source

class HasTSRepFields (rl :: RowList)  where

Members

Instances

#FakeSumRecordMembers Source

Modules
OhYes