my 13th reason
This commit is contained in:
7
src/app/types/TCharacter.ts
Normal file
7
src/app/types/TCharacter.ts
Normal 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
16
src/app/types/TSocket.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
5
src/app/types/TZoneCharacter.ts
Normal file
5
src/app/types/TZoneCharacter.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import {Character} from "@prisma/client";
|
||||
|
||||
export type TZoneCharacter = Character & {
|
||||
|
||||
}
|
Reference in New Issue
Block a user