From d8c34d80f1acab2f889702dc5d990f7869efa436 Mon Sep 17 00:00:00 2001 From: Joshua Amaju Date: Mon, 26 Aug 2024 19:02:01 +0100 Subject: [PATCH] doc --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 2fb6a94..54782f1 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,6 @@ import adapter from "fetch-prime/Adapters/Platform"; const result = await fetch("/users")(adapter); const res = pipe(result, E.chainW(Result.filterStatusOk)); const users = await chain(res, (res) => res.json()); - -// or -const request = map(fetch("/users"), E.chainW(filterStatusOk)); -const users = map( - request, - chain((res) => res.json()) -); -const response = await users(adapter); ``` ### With interceptor