import { Json } from '@typed/common' ; import { Id , JsonRpcError , JsonRpcFailedResponse } from '../../model' ; export function createFailedResponse < Code extends number , ErrorData extends Json = never > ( requestId , error ) { return { jsonrpc : '2.0' , id : requestId , error , } ; }