From 6ddab21bc45b71bee540264226c1e76fd7ec8715 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Mon, 16 Oct 2023 10:52:24 +0200 Subject: [PATCH] Improve type slightly --- packages/rpc-methods/src/permitted/getFile.test.ts | 6 +++--- packages/rpc-methods/src/permitted/getFile.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/rpc-methods/src/permitted/getFile.test.ts b/packages/rpc-methods/src/permitted/getFile.test.ts index 4b1700c21b..ba7db7d57e 100644 --- a/packages/rpc-methods/src/permitted/getFile.test.ts +++ b/packages/rpc-methods/src/permitted/getFile.test.ts @@ -47,7 +47,7 @@ describe('snap_getFile', () => { engine.push((req, res, next, end) => { const result = implementation( req as JsonRpcRequest>, - res as PendingJsonRpcResponse, + res as PendingJsonRpcResponse, next, end, hooks, @@ -89,7 +89,7 @@ describe('snap_getFile', () => { engine.push((req, res, next, end) => { const result = implementation( req as JsonRpcRequest>, - res as PendingJsonRpcResponse, + res as PendingJsonRpcResponse, next, end, hooks, @@ -130,7 +130,7 @@ describe('snap_getFile', () => { engine.push((req, res, next, end) => { const result = implementation( req as JsonRpcRequest>, - res as PendingJsonRpcResponse, + res as PendingJsonRpcResponse, next, end, hooks, diff --git a/packages/rpc-methods/src/permitted/getFile.ts b/packages/rpc-methods/src/permitted/getFile.ts index de1beba8ff..73064b2bd4 100644 --- a/packages/rpc-methods/src/permitted/getFile.ts +++ b/packages/rpc-methods/src/permitted/getFile.ts @@ -31,7 +31,7 @@ const hookNames: MethodHooksObject = { export const getFileHandler: PermittedHandlerExport< GetFileHooks, JsonRpcRequest, - unknown + string > = { methodNames: ['snap_getFile'], implementation,