Skip to content

@vttforge/core / SocketPayload

Type Alias: SocketPayload<S> ​

SocketPayload<S> = string extends keyof S ? never : InferSchema<S>

What run is handed. With an input schema, the shape it declares. Without one nothing is known about the payload, so a handler annotates its own.

Type Parameters ​

S ​

S extends Schema

MIT licensed.