(request: Partial<JRPCRequest>)
| 85 | * Checks whether the given request has a valid (non-empty string) `method`. |
| 86 | */ |
| 87 | export function isValidMethod(request: Partial<JRPCRequest>): boolean { |
| 88 | return typeof request.method === "string" && request.method.length > 0; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Type guard to check if a JRPC response is a success (has `result`). |
no outgoing calls
no test coverage detected