Created
September 16, 2019 19:33
-
-
Save john-osullivan/a882dde107182c6c5f82af934bd8df3d to your computer and use it in GitHub Desktop.
Dev Diaries #2 - StripeTypes Import
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 API from '@eximchain/dappbot-api-client'; | |
import Payment, { StripeTypes } from '@eximchain/dappbot-types/spec/methods/payment'; | |
// Nested namespaces make for legible collision-free names | |
const res:Payment.Read.Response = await API.payment.read.call(); | |
// Helper namespace cuts down on extra text | |
const subscription:StripeTypes.Subscription = res.data.subscription; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment