I am trying to write a supabase edge function with deno.
But I can see that when I run this command.
create edge function
npx supabase functions new FUNCTION-NAME
It creates a function file called index.ts but I am not comfortable with typescript.
Is there a way to create a function with on javascript?
.js? If that doesn't work, you can create a new JavaScript module (e.g.main.js) and write your code there. Then change the contents of the existing entrypoint module (index.ts) toimport "./main.js";to load and execute it.