Tipada de listra

npm install stripe @types/stripe

import * as Stripe from 'stripe';
const stripe = new Stripe('xxx_xxx_xxx');

//Or alternatively
import { resources } from 'stripe';
const stripeData = require('stripe')('xxx_xxx_xxx');
const customers = new resources.Customers(stripeData, null);
MitchAloha