From 802c0562930a2052f06b13f3c15bba256d46fe23 Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Sun, 23 Oct 2022 20:22:29 +0200 Subject: [PATCH] add annotation to activate reanalyze's exception analysis for async/await in ReScript v10.1 --- src/Fetch.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"