Skip to content

Commit 7ad2965

Browse files
Merge pull request #433 from elliotaplant/master
Add TypeScript usage to README
2 parents 33632e6 + 1dc18e9 commit 7ad2965

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ const stripe = stripePackage('sk_test_...');
6060
//
6161
```
6262

63+
64+
Or using TypeScript:
65+
66+
``` ts
67+
import * as Stripe from 'stripe';
68+
const stripe = new Stripe('sk_test_...');
69+
//
70+
```
71+
6372
### Using Promises
6473

6574
Every method returns a chainable promise which can be used instead of a regular

0 commit comments

Comments
 (0)