Skip to content

Instantly share code, notes, and snippets.

@john-osullivan
Created September 16, 2019 19:12
Show Gist options
  • Save john-osullivan/0d12293f03290bff9e25d260c8fb2c99 to your computer and use it in GitHub Desktop.
Save john-osullivan/0d12293f03290bff9e25d260c8fb2c99 to your computer and use it in GitHub Desktop.
Dev Daries #2 - Example namespace of types from Stripe
import AllStripeTypes from 'stripe';
export namespace StripeTypes {
export type Customer = AllStripeTypes.customers.ICustomer;
export type Card = AllStripeTypes.ICard;
export type Subscription = AllStripeTypes.subscriptions.ISubscription;
export type SubscriptionState = AllStripeTypes.subscriptions.SubscriptionStatus;
export type Invoice = AllStripeTypes.invoices.IInvoice;
export type LineItem = AllStripeTypes.invoices.IInvoiceLineItem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment