Skip to content

Commit

Permalink
chore: tight schema binding for delete hook
Browse files Browse the repository at this point in the history
  • Loading branch information
amandesai01 committed Dec 14, 2024
1 parent bb2bc7d commit 2740e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/composables/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { z } from 'zod';
import type { createHookSchema, updateHookSchema } from '~~/shared/schemas/hook';
import type { createHookSchema, deleteHookSchema, updateHookSchema } from '~~/shared/schemas/hook';
import type { Hook } from '~~/server/db/schema';

type UpdateHook = z.infer<typeof updateHookSchema>;
type CreateHook = z.infer<typeof createHookSchema>;
type DeleteHook = { id: string };
type DeleteHook = z.infer<typeof deleteHookSchema>;

export function useHooksRepository() {
return useObjectRepository<Hook[], never, any, UpdateHook, any, CreateHook, DeleteHook>({
Expand Down

0 comments on commit 2740e50

Please sign in to comment.