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:
authored and GitHub committed 2022-08-03 13:18:26 -06:00
1 parent 298a6d5e15
commit e878e1a665
11 files changed
+18 -38

No files matched your search

+1 -1
View File
@@ -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"]>;
+2
View File
@@ -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;
}
}