-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
25 lines (20 loc) · 623 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Member, Profile, Server } from "@prisma/client";
import { Server as NetServer, Socket } from "net";
import { NextApiResponse } from "next";
import { Server as SocketIOServer } from "socket.io";
export type ServerWithMemberAndProfile = Server & {
members: (Member & { profile: Profile })[];
};
export type MemberWithProfile = (Member & { profile: Profile })
export type NextApiResponseServerIO = NextApiResponse & {
socket: Socket & {
server: NetServer & {
io: SocketIOServer;
};
};
};
export interface ReplyContextType {
id: string | undefined;
content: string;
authorName: string;
}