Implementing a type-safe Stripe client for serverless using TypeScript