8 lines
No EOL
210 B
TypeScript
8 lines
No EOL
210 B
TypeScript
import { IReader } from "bufferstuff";
|
|
import { Packet } from "../enums/Packet";
|
|
|
|
export interface IPacket {
|
|
packetId: Packet,
|
|
readData: (reader:IReader) => IPacket,
|
|
writeData: () => Buffer|Promise<Buffer>
|
|
} |