Skip to content
Lucent
Esc
↑↓navigate↵open

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

Type preview
Open page

Last updated on September 26, 2026

Was this page helpful?