ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
4 replies
drewbie

Stripe Types Not Inferred In Supabase Function

I am not able to get the Stripe types to come through when using the Stripe library in a Supabase function. I realize this is more of a Deno concern but I wanted to see if anyone in here has had luck importing Stripe and having the types work. I've followed the same imports as some of the Supabase Stripe examples, but the types still dont work.

Currently I am importing Stripe via
import Stripe from "https://esm.sh/stripe@11.1.0?target=deno";
import Stripe from "https://esm.sh/stripe@11.1.0?target=deno";


But after importing I get
export const stripeClient = Stripe(
  Deno.env.get("STRIPE_SECRET_KEY"),
  {
    httpClient: Stripe.createFetchHttpClient(),
  }
);

stripeClient. // NO TYPES, stripeClient cast to any
export const stripeClient = Stripe(
  Deno.env.get("STRIPE_SECRET_KEY"),
  {
    httpClient: Stripe.createFetchHttpClient(),
  }
);

stripeClient. // NO TYPES, stripeClient cast to any


Any help would be appreciated
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Missing inferred types on supabase-js queries
SupabaseSSupabase / help-and-questions
3mo ago
Stripe Connect in supabase
SupabaseSSupabase / help-and-questions
3mo ago
Supabase - stripe connect
SupabaseSSupabase / help-and-questions
3mo ago
[SOLVED] Cannot import Stripe on Supabase Edge function
SupabaseSSupabase / help-and-questions
4y ago