PacketForDirection
type PacketForDirection<D extends PacketDirection> = Extract<{
readonly command: string;
readonly direction: "client";
readonly params: readonly string[];
readonly raw: string;
readonly encoding: "string" | "json";
}, {
readonly direction: D;
}> | Extract<{
readonly command: string;
readonly data: unknown;
readonly direction: "server";
readonly raw: string;
readonly encoding: "string" | "json";
}, {
readonly direction: D;
}> | Extract<{
readonly command: string;
readonly data: unknown;
readonly direction: "extension";
readonly raw: string;
readonly encoding: "string" | "json";
}, {
readonly direction: D;
}>
Defined in Packet.ts:74