Documentation
    Preparing search index...

    Type Alias InferProtocol<Routes>

    InferProtocol: {
        [K in keyof Routes]: Routes[K] extends RouteOutput<
            infer Cap,
            infer Output,
        >
            ? {
                cmd: Cap["cmd"] extends K ? Cap["cmd"] : never;
                in: StandardSchemaV1.InferOutput<Cap["schema"]>;
                out: Output;
            }
            : never
    }[keyof Routes]

    Infer the protocol from a router

    Type Parameters