Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Improve custom error payload type.

Matthieu Hochlander4a4837c6a920
diff --git a/supabase/functions/_shared/utils.ts b/supabase/functions/_shared/utils.ts
index 2ce10837..43ea5e64 100644
--- a/supabase/functions/_shared/utils.ts
+++ b/supabase/functions/_shared/utils.ts
@@ -8,7 +8,7 @@ export const corsHeaders = {
export function createErrorResponse(
status: number,
message: string,
- custom: any = {},
+ custom: Record<string, unknown> = {},
) {
return new Response(JSON.stringify({ status, message, ...custom }), {
headers: { "Content-Type": "application/json", ...corsHeaders },