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";

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


Any help would be appreciated
Was this page helpful?