You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const response = await fetch('/api/create-checkout-session', currently warns on "Unsafe assignment of an any value" because the compiler cannot find the type
further, asserting it is a Stripe.Response<Stripe.Checkout.Session> is illegal in the current code form
so, let's refactor to trpc for better typing
The text was updated successfully, but these errors were encountered:
const response = await fetch('/api/create-checkout-session',
currently warns on "Unsafe assignment of anany
value" because the compiler cannot find the typefurther, asserting it is a
Stripe.Response<Stripe.Checkout.Session>
is illegal in the current code formso, let's refactor to trpc for better typing
The text was updated successfully, but these errors were encountered: