Skip to content

Commit

Permalink
Improve type slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Oct 16, 2023
1 parent 84c43c4 commit 6ddab21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/rpc-methods/src/permitted/getFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('snap_getFile', () => {
engine.push((req, res, next, end) => {
const result = implementation(
req as JsonRpcRequest<JsonRpcRequest<unknown>>,
res as PendingJsonRpcResponse<unknown>,
res as PendingJsonRpcResponse<string>,
next,
end,
hooks,
Expand Down Expand Up @@ -89,7 +89,7 @@ describe('snap_getFile', () => {
engine.push((req, res, next, end) => {
const result = implementation(
req as JsonRpcRequest<JsonRpcRequest<unknown>>,
res as PendingJsonRpcResponse<unknown>,
res as PendingJsonRpcResponse<string>,
next,
end,
hooks,
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('snap_getFile', () => {
engine.push((req, res, next, end) => {
const result = implementation(
req as JsonRpcRequest<JsonRpcRequest<unknown>>,
res as PendingJsonRpcResponse<unknown>,
res as PendingJsonRpcResponse<string>,
next,
end,
hooks,
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc-methods/src/permitted/getFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const hookNames: MethodHooksObject<GetFileHooks> = {
export const getFileHandler: PermittedHandlerExport<
GetFileHooks,
JsonRpcRequest<unknown>,
unknown
string
> = {
methodNames: ['snap_getFile'],
implementation,
Expand Down

0 comments on commit 6ddab21

Please sign in to comment.