my 13th reason

This commit is contained in:
2024-05-28 21:54:34 +02:00
parent 4157ff5b5c
commit 80ec470fd4
30 changed files with 283 additions and 70 deletions

View File

@ -0,0 +1,7 @@
import { Socket } from 'socket.io';
import {Character as ICharacter, User} from "@prisma/client";
export type TCharacter = Socket & {
user?: User,
character?: ICharacter
}

16
src/app/types/TSocket.ts Normal file
View File

@ -0,0 +1,16 @@
import {Socket} from "socket.io";
import { User } from '@prisma/client';
export type TSocket = Socket & {
user?: User
handshake?: {
query?: {
token?: any
}
}
request?: {
headers?: {
cookie?: any
}
}
}

View File

@ -0,0 +1,5 @@
import {Character} from "@prisma/client";
export type TZoneCharacter = Character & {
}