diff --git a/src/Fetch.res b/src/Fetch.res index 618ce00..9638626 100644 --- a/src/Fetch.res +++ b/src/Fetch.res @@ -173,6 +173,6 @@ module Response = { // @send external arrayBuffer: t => Promise.t = "arrayBuffer" } -@val external fetch: (string, Request.init) => Promise.t = "fetch" +@raises(JsError) @val external fetch: (string, Request.init) => Promise.t = "fetch" @val external get: string => Promise.t = "fetch" @val external send: Request.t => Promise.t = "fetch"