Skip to content

Commit

Permalink
fix: BetterFetch instance shouldn't require any generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekacru committed Jul 25, 2024
1 parent b0eabe6 commit ec71daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/better-fetch/src/create-fetch/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export type InferPluginOptions<Options extends CreateFetchOption> =
: {};

export type BetterFetch<
CreateOptions extends CreateFetchOption,
CreateOptions extends CreateFetchOption = CreateFetchOption,
DefaultRes = CreateOptions["defaultOutput"] extends ZodSchema
? z.infer<CreateOptions["defaultOutput"]>
: unknown,
Expand Down
1 change: 1 addition & 0 deletions packages/better-fetch/src/test/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from "vitest";
import { ZodError, z } from "zod";
import {
BetterFetch,
type FetchSchemaRoutes,
createFetch,
createSchema,
Expand Down

0 comments on commit ec71daa

Please sign in to comment.