Skip to content

Commit

Permalink
fix rpc result type base
Browse files Browse the repository at this point in the history
  • Loading branch information
karimsa committed Mar 6, 2023
1 parent cad6acc commit 8d95915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toolkit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const getAppSettings = Object.assign(
);

export const runAppMethod = Object.assign(
async function <T extends Record<string, unknown>>({
async function <T>({
methodName,
data,
resultType,
Expand Down
2 changes: 1 addition & 1 deletion toolkit/react/rpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useRpcQuery<Input, Output>(
});
}

export function useRemoteAppMethod<Output extends Record<string, unknown>>(
export function useRemoteAppMethod<Output>(
methodName: string,
data: object,
{
Expand Down

0 comments on commit 8d95915

Please sign in to comment.