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
Instances
(TypeError ('Text "\128160 EmptyAPI's cannot be GenAll as they do not make a request") :: Constraint) => GenAll EmptyAPI Source # | |
Defined in Servant.Client.TypeScript | |
Fletch route => GenAll route Source # | Handle right association of routes (IE parens on the left) |
Defined in Servant.Client.TypeScript | |
(GenAll (route :<|> subrest), GenAll rest) => GenAll ((route :<|> subrest) :<|> rest) Source # | Handle left association of routes (IE parens on the left) |
Defined in Servant.Client.TypeScript | |
(Fletch route, GenAll rest) => GenAll (route :<|> rest) Source # | Handle right association of routes (IE parens on the left) |
Defined in Servant.Client.TypeScript |
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
?
Instances
Show InputMethod Source # | |
Defined in Servant.Client.TypeScript Methods showsPrec :: Int -> InputMethod -> ShowS # show :: InputMethod -> String # showList :: [InputMethod] -> ShowS # | |
Eq InputMethod Source # | |
Defined in Servant.Client.TypeScript |
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 # | |