-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtypes.ts
More file actions
22 lines (19 loc) · 591 Bytes
/
types.ts
File metadata and controls
22 lines (19 loc) · 591 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { Member, Message, Profile, Server } from "@prisma/client";
import type { Server as NetServer, Socket } from "net";
import type { NextApiResponse } from "next";
import type { Server as SocketIOServer } from "socket.io";
export type ServerWithMembersWithProfiles = Server & {
members: (Member & { profile: Profile })[];
};
export type MessageWithMemberWithProfile = Message & {
member: Member & {
profile: Profile;
};
};
export type NextApiResponseServerIo = NextApiResponse & {
socket: Socket & {
server: NetServer & {
io: SocketIOServer;
};
};
};