( code: number, message: string, id: string | number | null = null, )
| 19 | } |
| 20 | |
| 21 | function errorResponse( |
| 22 | code: number, |
| 23 | message: string, |
| 24 | id: string | number | null = null, |
| 25 | ): JsonRpcResponse { |
| 26 | return { jsonrpc: "2.0", id, error: { code, message } }; |
| 27 | } |
| 28 | |
| 29 | function isObject(val: unknown): val is Record<string, unknown> { |
| 30 | return typeof val === "object" && val !== null && !Array.isArray(val); |
no outgoing calls
no test coverage detected
searching dependent graphs…