diff --git a/src/Fetch.fs b/src/Fetch.fs index d0be008..992bb1c 100644 --- a/src/Fetch.fs +++ b/src/Fetch.fs @@ -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 =