Fix lint warnings: redundant type and floating promises

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-03-13 13:23:08 -07:00
parent 903f57a415
commit 7577846369
2 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ import { useRpcQuery } from "./useRpcQuery";
*/
export function useRpcQueryWithEvent<
K extends keyof RpcSchema,
E extends keyof RpcEventSchema & string,
E extends keyof RpcEventSchema,
>(cmd: K, payload: Req<K>, event: E, opts?: Omit<UseQueryOptions<Res<K>>, "queryKey" | "queryFn">) {
const queryClient = useQueryClient();
const query = useRpcQuery(cmd, payload, opts);