Fix/api build (#3675)
* fix: shared next-auth calendso session type fix * fix: move imports from @lib -> @calcom/lib to fix types * Consolidates next-auth definitions Co-authored-by: Agusti Fernandez Pardo <[email protected]> Co-authored-by: zomars <[email protected]>
This commit is contained in:
11 files changed
+18
-38
No files matched your search
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { UserPermissionRole } from "@prisma/client";
|
||||
import NextAuth, { DefaultSession } from "next-auth";
|
||||
import { DefaultSession } from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
type DefaultSessionUser = NonNullable<DefaultSession["user"]>;
|
||||
|
||||
Vendored
+2
@@ -5,6 +5,8 @@ import "./next-auth";
|
||||
|
||||
export declare module "next" {
|
||||
interface NextApiRequest extends IncomingMessage {
|
||||
// args is defined by /integrations/[...args] endpoint
|
||||
query: Partial<{ [key: string]: string | string[] }> & { args: string[] };
|
||||
session?: Session | null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user