Skip to content

Commit

Permalink
index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Nov 30, 2022
1 parent 6a2576b commit c85072c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/index.d.ts
Expand Up @@ -7,6 +7,7 @@
///<reference path='./Errors.d.ts' />
///<reference path='./OAuth.d.ts' />
///<reference path='./Webhooks.d.ts' />
///<reference path='./UpcomingInvoices.d.ts' />
///<reference path='./AccountsResource.d.ts' />
///<reference path='./AccountLinksResource.d.ts' />
///<reference path='./ApplePayDomainsResource.d.ts' />
Expand Down
4 changes: 4 additions & 0 deletions types/test/typescriptTest.ts
Expand Up @@ -123,6 +123,10 @@ stripe = new Stripe('sk_test_123', {
return undefined;
});

// @ts-expect-error
(await stripe.invoices.retrieveUpcoming()).id;
(await stripe.invoices.retrieve('')).id;

try {
await stripe.paymentIntents.create({amount: 100, currency: 'USD'});
} catch (err) {
Expand Down

0 comments on commit c85072c

Please sign in to comment.