]> git.codecow.com Git - libnemo.git/commitdiff
Force RPC consumers to validate JSON response.
authorChris Duncan <chris@codecow.com>
Mon, 3 Aug 2026 05:50:48 +0000 (22:50 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 3 Aug 2026 05:50:48 +0000 (22:50 -0700)
src/lib/rpc.ts

index b3fa8f2bf4d70ebcad3e2dc2d4d5aba5b7bf8ac8..b605cac41b38fe827989fed2b38d993725c057b6 100644 (file)
@@ -29,7 +29,7 @@ export class Rpc {
        * @param {object} [data] - JSON to send to the node as defined by the action
        * @returns {Promise<any>} JSON-formatted RPC results from the node
        */
-       async post (action: string, data?: Record<string, unknown>): Promise<any> {
+       async post (action: string, data?: Record<string, unknown>): Promise<unknown> {
                var process: any = process || null
                this.#validate(action)
                const headers: Record<string, string> = {}