mirror of
https://github.com/thib8956/tic-tac-toe-ws.git
synced 2024-11-17 01:16:33 +00:00
17 lines
223 B
TypeScript
17 lines
223 B
TypeScript
|
export type MessageKind = "hello" | "update";
|
||
|
|
||
|
export interface Message {
|
||
|
kind: MessageKind,
|
||
|
data: Response | string,
|
||
|
}
|
||
|
|
||
|
export interface Request {
|
||
|
x: number,
|
||
|
y: number
|
||
|
}
|
||
|
|
||
|
export interface Response {
|
||
|
grid: number[]
|
||
|
}
|
||
|
|