From 924817d9f73206a2d8cfb2971a658dc878303a9d Mon Sep 17 00:00:00 2001 From: Patrick Roza Date: Sat, 21 Oct 2023 14:19:55 +0200 Subject: [PATCH] fix type --- .changeset/swift-games-camp.md | 5 +++++ packages/prelude/_src/client/clientFor.ts | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/swift-games-camp.md diff --git a/.changeset/swift-games-camp.md b/.changeset/swift-games-camp.md new file mode 100644 index 000000000..2d5d6a85a --- /dev/null +++ b/.changeset/swift-games-camp.md @@ -0,0 +1,5 @@ +--- +"@effect-app/prelude": patch +--- + +fix type diff --git a/packages/prelude/_src/client/clientFor.ts b/packages/prelude/_src/client/clientFor.ts index 0eb204f55..b04e1de99 100644 --- a/packages/prelude/_src/client/clientFor.ts +++ b/packages/prelude/_src/client/clientFor.ts @@ -5,8 +5,6 @@ import type { GetResponse, Methods, QueryRequest, RequestSchemed } from "@effect import { condemnCustom } from "@effect-app/prelude/schema" import * as utils from "@effect-app/prelude/utils" import { Path } from "path-parser" - -import type { Http } from "@effect-app/core/http/http-client" import type { ApiConfig } from "./config.js" import type { FetchError, FetchResponse } from "./fetch.js" import { @@ -29,8 +27,8 @@ type AnyRequest = Omit, "method"> & { const cache = new Map>() export type Client = - & RequestHandlers - & RequestHandlersE + & RequestHandlers + & RequestHandlersE export function clientFor(models: M): Client { const found = cache.get(models)