File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @solana/rpc-spec " : patch
3+ ---
4+
5+ Allow Rpc Request params to be any type, instead of requiring an array
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Callable } from '@solana/rpc-spec-types';
33import { RpcRequest } from './rpc-request' ;
44
55export type RpcApiConfig = Readonly < {
6- parametersTransformer ?: < T extends unknown [ ] > ( params : T , methodName : string ) => unknown [ ] ;
6+ parametersTransformer ?: < T extends unknown [ ] > ( params : T , methodName : string ) => unknown ;
77 responseTransformer ?: < T > ( response : unknown , methodName : string ) => T ;
88} > ;
99
Original file line number Diff line number Diff line change 11export type RpcRequest < TResponse > = {
22 methodName : string ;
3- params : unknown [ ] ;
3+ params : unknown ;
44 responseTransformer ?: ( response : unknown , methodName : string ) => TResponse ;
55} ;
66
You can’t perform that action at this time.
0 commit comments