Skip to content

ProcedureResponse

ProcedureResponse<T, P> = T[P] extends [unknown, infer R, ...unknown[]] ? R : unknown

Defined in: astrobase/src/rpc/shared/procedures.ts:32

A type that derives the response type of a procedure from a ProcedureTypes.

T extends ProcedureTypes

The procedure types for type inference.

P extends ProcedureName<T>

The procedure name.