Add interfaces for each event's data

This commit is contained in:
Oliver-Akins 2020-09-30 23:10:35 -06:00
parent cfb915724f
commit 1063126164
12 changed files with 36 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import { Socket } from 'socket.io';
export const ExecutePlayer = (socket: Socket, data: any) => {
export const ExecutePlayer = (socket: Socket, data: ExecutePlayer) => {
console.log(`Killing a player`);
};