From 5ab3c6ca5a14819dd8abf483425cd7f0ba777061 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 13 Jan 2026 09:40:07 -0600 Subject: [PATCH] Add TypeScript definitions for Supabase edge runtime --- supabase/functions/ai-structured/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supabase/functions/ai-structured/index.ts b/supabase/functions/ai-structured/index.ts index c549920..8242d7d 100644 --- a/supabase/functions/ai-structured/index.ts +++ b/supabase/functions/ai-structured/index.ts @@ -1,6 +1,7 @@ // supabase/functions/ai-structured/index.ts import OpenAI from "jsr:@openai/openai"; -import { createClient } from "jsr:@supabase/supabase-js"; +import "jsr:@supabase/functions-js/edge-runtime.d.ts"; + const corsHeaders = { "Access-Control-Allow-Origin": "*",