-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.ts
More file actions
27 lines (23 loc) · 687 Bytes
/
type.ts
File metadata and controls
27 lines (23 loc) · 687 Bytes
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
26
27
import { Server as NetServer, Socket } from "net";
import { Server as SocketIoServer } from "socket.io";
import { NextApiResponse } from "next";
import { Friend, Member, Message, Profile, Server } from "@prisma/client";
export type ServerWithChannelAndMembers = Server & {
members: (Member & { profile: Profile })[];
};
export type NextApiResponseWithSocketIo = NextApiResponse & {
socket: Socket & {
server: NetServer & {
io: SocketIoServer;
};
};
};
export type MessageWithMemberWithProfile = Message & {
member: Member & {
profile: Profile;
};
};
export type FriendsWithFriendOneAndFriendTwo = Friend & {
friendOne: Profile;
friendTwo: Profile;
};