6a002b900f
Co-authored-by: alannnc <alannnc@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
20 lines
608 B
TypeScript
20 lines
608 B
TypeScript
import { GetServerSidePropsContext, GetServerSidePropsResult } from "next";
|
|
import { CalendsoSessionUser } from "next-auth";
|
|
|
|
import prisma from "@calcom/prisma";
|
|
|
|
import type { ssrInit } from "@server/lib/ssr";
|
|
|
|
export type AppUser = CalendsoSessionUser | undefined;
|
|
export type AppPrisma = typeof prisma;
|
|
export type AppGetServerSidePropsContext = GetServerSidePropsContext<{
|
|
appPages: string[];
|
|
}>;
|
|
export type AppSsrInit = ssrInit;
|
|
export type AppGetServerSideProps = (
|
|
context: AppGetServerSidePropsContext,
|
|
prisma: AppPrisma,
|
|
user: AppUser,
|
|
ssrInit: AppSsrInit
|
|
) => GetServerSidePropsResult;
|