mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-01 03:46:39 -05:00
fix: broken session type
This commit is contained in:
@@ -38,12 +38,12 @@ export type InferSessionAPI<API> = API extends {
|
||||
disableCookieCache?: boolean;
|
||||
};
|
||||
asResponse?: R;
|
||||
}) => R extends true
|
||||
? Promise<Response>
|
||||
: Promise<PrettifyDeep<Awaited<ReturnType<E>>>> & {
|
||||
}) => false extends R
|
||||
? Promise<PrettifyDeep<Awaited<ReturnType<E>>>> & {
|
||||
options: E["options"];
|
||||
path: E["path"];
|
||||
};
|
||||
}
|
||||
: Promise<Response>;
|
||||
}
|
||||
: never
|
||||
: never
|
||||
|
||||
Reference in New Issue
Block a user