*RPCMethod handler type needs to return a promise

This commit is contained in:
Derrick Hammer 2022-08-26 22:21:21 -04:00
parent c2dfe1f162
commit d73bb04a3d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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> = {