fix: ensure zod v4 type annotations work with core types (#3834)

* fix: ensure zod v4 type annotations work with core types

* chore: lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
This commit is contained in:
KinfeMichael Tariku
2025-08-11 09:58:40 -07:00
committed by Bereket Engida
co-authored by Bereket Engida
parent 07ce74ee3c
commit ae8032e879
+2
View File
@@ -4,6 +4,8 @@ export * from "./error";
export * from "./utils";
export type * from "better-call";
export type * from "zod/v4";
// @ts-expect-error we need to export core to make sure type annotations works with v4/core
export type * from "zod/v4/core";
//@ts-expect-error: we need to export helper types even when they conflict with better-call types to avoid "The inferred type of 'auth' cannot be named without a reference to..."
export type * from "./types/helper";
// export this as we are referencing OAuth2Tokens in the `refresh-token` api as return type