Skip to content

Commit

Permalink
Merge pull request #3 from SCullman/patch-1
Browse files Browse the repository at this point in the history
BodyInit is now U3
  • Loading branch information
MangelMaxime authored Sep 3, 2019
2 parents e1f4e8c + 00a0530 commit 6f8a369
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Fetch.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ module Thoth.Fetch

open Fetch
open Fable.Core
open Fable.Core.JsInterop
open Thoth.Json

let internal toJsonBody (value : JsonValue) =
let internal toJsonBody (value : JsonValue) : BodyInit=
#if DEBUG
Encode.toString 4 value
|> U2.Case2
|> (!^)
#else
Encode.toString 0 value
|> U2.Case2
|> (!^)
#endif

type Fetch =
Expand Down

0 comments on commit 6f8a369

Please sign in to comment.