Module

Refty

Package
purescript-refty
Repository
oreshinya/purescript-refty

#Key Source

type Key = String

#Identifier Source

type Identifier a = a -> String

#Format Source

type Format = { entities :: StrMap (StrMap Foreign), references :: StrMap Foreign }

#Entity Source

data Entity a

#Reference Source

data Reference a

#Params Source

data Params a

#Refty Source

newtype Refty

Instances

#entity Source

entity :: forall a. Key -> Identifier a -> Entity a

#hasOneRef Source

hasOneRef :: forall a. Key -> Identifier a -> Maybe (Reference a)

#hasManyRef Source

hasManyRef :: forall a. Key -> Identifier a -> Maybe (Reference a)

#selfRef Source

selfRef :: forall a. Key -> Maybe (Reference a)

#params Source

params :: forall a. Entity a -> Maybe (Reference a) -> Params a

#individual Source

individual :: forall a. Encode a => a -> Params a -> Format

#collection Source

collection :: forall a. Encode a => Array a -> Params a -> Format
Modules
Refty