Skip to content

Commit 23ed36b

Browse files
committed
Http.Request record is accepting Maybe Float as timeout
1 parent 9e79043 commit 23ed36b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/GraphQL/Client/Http.elm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import GraphQL.Client.Http.Util as Util
2121
import GraphQL.Request.Builder as Builder
2222
import Http
2323
import Task exposing (Task)
24-
import Time exposing (Time)
2524

2625

2726
{-| An error returned by the GraphQL server that indicates there was something wrong with the request.
@@ -93,7 +92,7 @@ type alias RequestOptions =
9392
{ method : String
9493
, headers : List Http.Header
9594
, url : String
96-
, timeout : Maybe Time
95+
, timeout : Maybe Float
9796
, withCredentials : Bool
9897
}
9998

src/GraphQL/Client/Http/Util.elm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import GraphQL.Response as Response
44
import Http
55
import Json.Decode
66
import Json.Encode
7-
import Time exposing (Time)
87
import Url
98

109

@@ -54,7 +53,7 @@ type alias RequestOptions =
5453
{ method : String
5554
, headers : List Http.Header
5655
, url : String
57-
, timeout : Maybe Time
56+
, timeout : Maybe Float
5857
, withCredentials : Bool
5958
}
6059

@@ -82,7 +81,7 @@ type alias RequestConfig a =
8281
, url : String
8382
, body : Http.Body
8483
, expect : Http.Expect a
85-
, timeout : Maybe Time
84+
, timeout : Maybe Float
8685
, withCredentials : Bool
8786
}
8887

0 commit comments

Comments
 (0)