*allow a buffer to be passed

This commit is contained in:
Derrick Hammer 2023-03-18 12:23:49 -04:00
parent ee5c1ea692
commit cce09d1e95
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export default class RpcNetworkQueryFactory {
query, query,
options = {}, options = {},
}: { }: {
relay: string; relay: string | Buffer;
query: ClientRPCRequest; query: ClientRPCRequest;
options?: RpcQueryOptions; options?: RpcQueryOptions;
}): SimpleRpcQuery { }): SimpleRpcQuery {

View File

@ -19,7 +19,7 @@ export default class SimpleRpcQuery extends RpcQueryBase {
options, options,
}: { }: {
network: RpcNetwork; network: RpcNetwork;
relay?: string | any; relay?: string | Buffer | any;
query: ClientRPCRequest; query: ClientRPCRequest;
options: RpcQueryOptions; options: RpcQueryOptions;
}) { }) {