Graphorin API reference v0.13.8
Graphorin API reference / @graphorin/protocol / server-message / RpcSuccess
Variable: RpcSuccess
ts
const RpcSuccess: ZodEffects<ZodObject<{
id: ZodUnion<[ZodString, ZodNumber]>;
jsonrpc: ZodLiteral<"2.0">;
result: ZodUnknown;
v: ZodLiteral<"1">;
}, "strict", ZodTypeAny, {
id: string | number;
jsonrpc: "2.0";
result?: unknown;
v: "1";
}, {
id: string | number;
jsonrpc: "2.0";
result?: unknown;
v: "1";
}>, {
id: string | number;
jsonrpc: "2.0";
result?: unknown;
v: "1";
}, {
id: string | number;
jsonrpc: "2.0";
result?: unknown;
v: "1";
}>;Defined in: src/server-message.ts:55
Stable
Zod schema behind ServerRpcSuccess.