(request: JRPCNotification<T> | JRPCRequest<T>)
| 58 | * Type guard to check if a JRPC message is a request (has `id` property). |
| 59 | */ |
| 60 | export function isJRPCRequest<T extends JRPCParams>(request: JRPCNotification<T> | JRPCRequest<T>): request is JRPCRequest<T> { |
| 61 | return hasProperty(request, "id") && request.id !== undefined; |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * V2-compatible type guard to check if a JSON-RPC message is a request (has `id` property). |
no test coverage detected