Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Servant.Client.TypeScript
Generator functions
gen :: forall (api :: Type). GenAll api => String Source #
Obtain the String for the client a la carte without type definitions
tsClient :: forall xs api. (TypeDecls xs, GenAll api) => String Source #
Generate complete TypeScript client for a given api
Type Classes
class Fletch route where Source #
Type class that iterates over the servant type and seperates out inputs and outputs
Instances
The type class for iterating over the API type
Minimal complete definition
genAll
AST data types
What kind of API documentation are we using for this route?
Constructors
Summary' | |
Description' |
data InputMethod Source #
What is the means of input for this URIBit
?
An input chunk of the URI
Orphan instances
FieldTypeName Jwt Source # | |
Methods fieldTypeName :: Proxy Jwt -> FieldSpec # | |
FieldTypeName NoContent Source # | |
Methods fieldTypeName :: Proxy NoContent -> FieldSpec # | |
(FieldTypeName x, FieldTypeName hs) => FieldTypeName (Headers hs x :: Type) Source # | |
Methods fieldTypeName :: Proxy (Headers hs x) -> FieldSpec # | |
FieldTypeName ('[] :: [k]) Source # | |
Methods fieldTypeName :: Proxy '[] -> FieldSpec # | |
(FieldTypeName hs, FieldTypeName x) => FieldTypeName (Header' ts doc x ': hs :: [Type]) Source # | |
Methods fieldTypeName :: Proxy (Header' ts doc x ': hs) -> FieldSpec # | |
(ToJSON x, FromHList xs) => ToJSON (Headers xs x) Source # | |