mirror of
https://github.com/rowtype-yoga/purescript-graphql-fundeps.git
synced 2024-11-22 02:55:53 +03:00
use pre-made type to avoid confusion
This commit is contained in:
parent
1521fdb738
commit
fe57e2e606
@ -99,15 +99,7 @@ graphQL
|
||||
:: Endpoint
|
||||
-> Array RequestHeader
|
||||
-> AffjaxDriver
|
||||
-> ( forall (operation :: GraphQL) (gql :: Symbol) (i :: Row Type) (o :: Row Type)
|
||||
. GraphQLReqRes operation gql i o
|
||||
=> IsSymbol gql
|
||||
=> JSON.WriteForeign { | i }
|
||||
=> JSON.ReadForeign { | o }
|
||||
=> Gql operation
|
||||
-> Record i
|
||||
-> Aff { | o }
|
||||
)
|
||||
-> GraphQLClientAff
|
||||
graphQL endpoint headers driver = graphQL'
|
||||
endpoint
|
||||
headers
|
||||
@ -175,4 +167,4 @@ graphQL' endpoint headers' driver = go
|
||||
, response
|
||||
}
|
||||
)
|
||||
Right ({ data: d } :: { data :: { | o } }) -> pure d
|
||||
Right ({ data: d } :: { data :: { | o } }) -> pure d
|
||||
|
Loading…
Reference in New Issue
Block a user