File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,6 @@ export type JsonRpcMethod<
5656 I extends JsonRpcParams | undefined = JsonRpcParams | undefined ,
5757> = ( data : JsonRpcRequest < I > , event : H3Event ) => O | Promise < O > ;
5858
59- /**
60- * A map of method names to their corresponding functions.
61- */
62- type JsonRpcMethodMap = Record < string , JsonRpcMethod > ;
63-
6459// Official JSON-RPC 2.0 error codes.
6560/**
6661 * Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
@@ -150,7 +145,7 @@ export function defineJsonRpc<
150145 * }));
151146 */
152147export function defineJsonRpcHandler < RequestT extends EventHandlerRequest = EventHandlerRequest > (
153- methods : JsonRpcMethodMap ,
148+ methods : Record < string , JsonRpcMethod > ,
154149 middleware ?: Middleware [ ] ,
155150) : EventHandler < RequestT > {
156151 /**
You can’t perform that action at this time.
0 commit comments