Skip to content

Documentation / @super-line/server / HandlersFor

Type Alias: HandlersFor<S>

HandlersFor<S> = { [K in keyof CtsOf<S>]: (input: ServerInput<CtsOf<S>[K]>, ctx: unknown, conn: Conn) => Awaitable<Output<CtsOf<S>[K]>> }

Defined in: index.ts:285

Handlers a plugin provides for its paired surface S (ADR-0004): one per clientToServer key, typed from S. ctx/conn are loose — a plugin is written independently of the host's per-role ctx.

Type Parameters

S

S extends Directional

Released under the MIT License.