Created
September 16, 2019 19:12
-
-
Save john-osullivan/0d12293f03290bff9e25d260c8fb2c99 to your computer and use it in GitHub Desktop.
Dev Daries #2 - Example namespace of types from Stripe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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