*RPCMethod handler type needs to return a promise
This commit is contained in:
parent
c2dfe1f162
commit
d73bb04a3d
|
@ -19,7 +19,7 @@ export interface RPCMethod {
|
||||||
handler: (
|
handler: (
|
||||||
request: RPCRequest,
|
request: RPCRequest,
|
||||||
sendStream: (stream: AsyncIterable<Uint8Array>) => void
|
sendStream: (stream: AsyncIterable<Uint8Array>) => void
|
||||||
) => RPCResponse | null;
|
) => Promise<RPCResponse | null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
||||||
|
|
Loading…
Reference in New Issue